From b77ffbfab8af9653a7496e1834c3c6b11941f39a Mon Sep 17 00:00:00 2001 From: Denis Gukov Date: Sun, 5 Sep 2021 14:44:41 +0500 Subject: [PATCH] style(be): var name --- db/sql/SqlDb.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/db/sql/SqlDb.go b/db/sql/SqlDb.go index ca544376..7db29517 100644 --- a/db/sql/SqlDb.go +++ b/db/sql/SqlDb.go @@ -166,12 +166,12 @@ func createDb() error { return err } - db, err := sql.Open(cfg.Dialect.String(), connectionString) + conn, err := sql.Open(cfg.Dialect.String(), connectionString) if err != nil { return err } - _, err = db.Exec("create database " + cfg.DbName) + _, err = conn.Exec("create database " + cfg.DbName) if err != nil { log.Warn(err.Error())