mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-20 15:29:28 +01:00
style(be): var name
This commit is contained in:
parent
0b59fc5d98
commit
b77ffbfab8
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user