From d1f0c83b2a74ea2a81431540926204aea15a2ec2 Mon Sep 17 00:00:00 2001 From: Erick Hitter <git-contrib@ethitter.com> Date: Sun, 16 Jul 2017 13:17:20 -0700 Subject: [PATCH] Don't shadow type declaration with var, per `go tool vet` --- eth-log-alerting.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/eth-log-alerting.go b/eth-log-alerting.go index af6d958..89e05ad 100644 --- a/eth-log-alerting.go +++ b/eth-log-alerting.go @@ -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() { -- GitLab