chore: Redundant function calls. (#956)

This commit is contained in:
Vincent.Shi
2024-01-05 15:07:49 +08:00
committed by GitHub
parent 2e12ceeaed
commit 4af94df142

View File

@@ -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