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
@@ -99,11 +99,6 @@ func LoadGlobalConfig(configPath string) (*Config, error) {
|
||||
return &cfg, nil
|
||||
}
|
||||
|
||||
// GetGlobalConfig returns the global configuration singleton.
|
||||
func GetGlobalConfig() *Config {
|
||||
return C_globalConfig
|
||||
}
|
||||
|
||||
// LoadBotUserConfig reads and parses bot_user_config.json and stores it as the
|
||||
// global C_botUserConfig singleton, mirroring LoadGlobalConfig.
|
||||
func LoadBotUserConfig(configPath string) (*BotUserConfig, error) {
|
||||
|
||||
Reference in new issue
Block a user