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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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