Skip to content

Commit

Permalink
move declaration out to fix scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jwwandy committed Aug 8, 2019
1 parent 7e41574 commit 02a98b2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion backend/src/apiserver/client_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ func initMysql(driverName string, initConnectionTimeout time.Duration) string {
util.TerminateIfError(err)

// Create database if not exist
dbName := getStringConfig(mysqlDBName)
operation = func() error {
dbName := getStringConfig(mysqlDBName)
_, err = db.Exec(fmt.Sprintf("CREATE DATABASE IF NOT EXISTS %s", dbName))
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions go.sum

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02a98b2

Please sign in to comment.