From 16efeee31d5623f4d5a1cf9d2b822bbcee5fa891 Mon Sep 17 00:00:00 2001 From: Siyuan Miao Date: Wed, 19 Feb 2025 10:24:27 +0100 Subject: [PATCH] fix(config): should return defaultConfig when config file doesnt exist --- config.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config.go b/config.go index 3818b7b..87301a8 100644 --- a/config.go +++ b/config.go @@ -52,6 +52,9 @@ func LoadConfig() { return } + // load the default config + config = defaultConfig + file, err := os.Open(configPath) if err != nil { logger.Debug("default config file doesn't exist, using default")