Skip to content

Commit

Permalink
fix: don't panic when env is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
believer committed Jan 5, 2024
1 parent f904a31 commit 5a4655c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
9 changes: 3 additions & 6 deletions app/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,11 @@ import (

func SetupAndRunApp() error {
// Load environment variables
err := godotenv.Load()

if err != nil {
return err
}
godotenv.Load()

// Initialize database connection
err = db.InitializeConnection()
err := db.InitializeConnection()

if err != nil {
return err
}
Expand Down
Loading

0 comments on commit 5a4655c

Please sign in to comment.