style(be): var name

This commit is contained in:
Denis Gukov 2021-09-05 14:44:41 +05:00
parent 0b59fc5d98
commit b77ffbfab8

View File

@ -166,12 +166,12 @@ func createDb() error {
return err return err
} }
db, err := sql.Open(cfg.Dialect.String(), connectionString) conn, err := sql.Open(cfg.Dialect.String(), connectionString)
if err != nil { if err != nil {
return err return err
} }
_, err = db.Exec("create database " + cfg.DbName) _, err = conn.Exec("create database " + cfg.DbName)
if err != nil { if err != nil {
log.Warn(err.Error()) log.Warn(err.Error())