mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 01:07:10 +00:00
Improve: clean code
This commit is contained in:
@@ -364,6 +364,7 @@ func newConfig() *Config {
|
||||
return config
|
||||
}
|
||||
|
||||
// Instance return singleton instance of Config
|
||||
func Instance() *Config {
|
||||
once.Do(func() {
|
||||
config = newConfig()
|
||||
|
||||
Reference in New Issue
Block a user