Skip to content

Commit

Permalink
remove fatal error
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielolivrp committed Apr 15, 2024
1 parent 0d6a3dc commit 3712229
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ import (
func main() {
docs.SwaggerInfo.BasePath = "/api"

err := godotenv.Load()
if err != nil {
logger.Fatal("Error loading dotfile. ", err)
}
godotenv.Load()

cfg := config.Load()
if cfg.Environment == config.Production {
Expand All @@ -50,7 +47,7 @@ func main() {
queue := queue.NewQueue(cfg.RedisAddr, cfg.RedisPassword)

database := database.NewDatabase(cfg.DatabaseURL)
err = database.RunMigrate(
err := database.RunMigrate(
&model.Account{},
&model.Message{},
)
Expand Down

0 comments on commit 3712229

Please sign in to comment.