From 0670f2c9c4a2d0b997cebeb02b5aba0cedd5fa23 Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 2 May 2019 18:14:07 +0800 Subject: [PATCH] fix --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index cbc88bf..b48624f 100644 --- a/main.go +++ b/main.go @@ -6,7 +6,7 @@ import ( "fmt" "database/sql" _ "github.com/go-sql-driver/mysql" - + "gopkg.in/gcfg.v1" tb "gopkg.in/tucnak/telebot.v2" ) @@ -51,7 +51,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) }