Skip to content
Snippets Groups Projects
Commit d1f0c83b authored by Erick Hitter's avatar Erick Hitter
Browse files

Don't shadow type declaration with var, per `go tool vet`

parent b9193650
No related branches found
No related tags found
1 merge request!1Convert to Golang
Pipeline #
......@@ -65,17 +65,16 @@ func init() {
usage()
}
config := config{}
if err = json.Unmarshal(configFile, &config); err != nil {
cfg := config{}
if err = json.Unmarshal(configFile, &cfg); err != nil {
usage()
}
debugDest = config.DebugDest
debug = config.Debug
debugDest = cfg.DebugDest
debug = cfg.Debug
logConfigs = cfg.Logs
setUpLogger()
logConfigs = config.Logs
}
func main() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment