From 4af94df142d4ab070e38569a0422ebd7154f8da3 Mon Sep 17 00:00:00 2001 From: "Vincent.Shi" Date: Fri, 5 Jan 2024 15:07:49 +0800 Subject: [PATCH] chore: Redundant function calls. (#956) --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 425b46612..748fa2e30 100644 --- a/main.go +++ b/main.go @@ -72,11 +72,10 @@ func main() { currentDir, _ := os.Getwd() configFile = filepath.Join(currentDir, configFile) } - C.SetConfig(configFile) } else { configFile = filepath.Join(C.Path.HomeDir(), C.Path.Config()) - C.SetConfig(configFile) } + C.SetConfig(configFile) if geodataMode { C.GeodataMode = true