Skip to content

Commit

Permalink
refactor: remove not needed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinanielsen committed Dec 26, 2023
1 parent 4db8d46 commit 75314c2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ func ConnectToDB() {
os.Create(fmt.Sprintf("%v/main.db", dbPath))
}

db := sqlite.Open(fmt.Sprintf("%v/main.db", dbPath))

database, err := gorm.Open(db, &gorm.Config{
database, err := gorm.Open(sqlite.Open(fmt.Sprintf("%v/main.db", dbPath)), &gorm.Config{
DisableForeignKeyConstraintWhenMigrating: true,
})
if err != nil {
Expand Down

0 comments on commit 75314c2

Please sign in to comment.