Skip to content

Commit

Permalink
Camelcase
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkRunWu committed Dec 13, 2023
1 parent 418e25b commit 525b007
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions testutil/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ func init() {
}

func SetupDB() (database db.DB, resetDB func()) {
db_url := viper.GetString("database-url")
database, err := db.New(db_url)
dbUrl := viper.GetString("database-url")
database, err := db.New(dbUrl)
if err != nil {
panic(err)
}
err = doMigrate(db_url, false)
err = doMigrate(dbUrl, false)
resetDB = func() {
doMigrate(db_url, true)
doMigrate(dbUrl, true)
}
if err != nil {
panic(err)
Expand Down

0 comments on commit 525b007

Please sign in to comment.