style: replace GetConfig() with variable C_globalConfig
This commit is contained in:
1 parent
bf4cdf0d88
commit
16341972af
13 files changed
+44
-49
No files matched your search
@@ -409,7 +409,7 @@ func GetWSClient() *WSClient {
|
||||
|
||||
// LoginAndStart performs the Komari login and returns an error if it fails.
|
||||
func LoginAndStart() error {
|
||||
cfg := config.GetGlobalConfig()
|
||||
cfg := config.C_globalConfig
|
||||
client := GetClient()
|
||||
if client == nil {
|
||||
return fmt.Errorf("komari client not initialized")
|
||||
|
||||
Reference in new issue
Block a user