From d568ef94cdb4b97ad9d09c24c87129ef12fe374a Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 3 May 2019 12:40:43 +0800 Subject: [PATCH] fix --- main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/main.go b/main.go index 3d9ed50..1952002 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,6 @@ package main import ( "encoding/json" - "err" "flag" "fmt" "log" @@ -53,7 +52,7 @@ func main() { // Parsing config flag.Parse() - err = gcfg.ReadFileInto(&cfg, *config) + err := gcfg.ReadFileInto(&cfg, *config) if err != nil { log.Fatalf("Failed to parse gcfg data: %s", err) }