Skip to content

Commit

Permalink
Fixed unhandled return argument
Browse files Browse the repository at this point in the history
  • Loading branch information
MaartendeKruijf committed Mar 14, 2024
1 parent 49e8609 commit 0f70519
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ func initializeCore(app *gin.Engine) error {

initDatabase := utils.GetEnv("DATABASE", "false")
if initDatabase == "true" {
mainController.setupDatabase()
err = mainController.setupDatabase()
if err != nil {
log.Error(err)
return err
}
err = routes.Database(app, &mainController)
if err != nil {
log.Error(err)
Expand Down

0 comments on commit 0f70519

Please sign in to comment.