Skip to content

Commit 16efeee

Browse files
committed
fix(config): should return defaultConfig when config file doesnt exist
1 parent 99b3017 commit 16efeee

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ func LoadConfig() {
5252
return
5353
}
5454

55+
// load the default config
56+
config = defaultConfig
57+
5558
file, err := os.Open(configPath)
5659
if err != nil {
5760
logger.Debug("default config file doesn't exist, using default")

0 commit comments

Comments
 (0)