fix(config): should return defaultConfig when config file doesnt exist

This commit is contained in:
Siyuan Miao 2025-02-19 10:24:27 +01:00
parent 99b3017344
commit 16efeee31d
1 changed files with 3 additions and 0 deletions

View File

@ -52,6 +52,9 @@ func LoadConfig() {
return return
} }
// load the default config
config = defaultConfig
file, err := os.Open(configPath) file, err := os.Open(configPath)
if err != nil { if err != nil {
logger.Debug("default config file doesn't exist, using default") logger.Debug("default config file doesn't exist, using default")