Skip to content

Commit

Permalink
Remove log import and log.Fatal call in init function.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-shubh committed Nov 9, 2024
1 parent 45146fb commit 2016310
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"log"
"os"

"app.myriadflow.com/db"
Expand All @@ -11,9 +10,7 @@ import (

func init() {
if len(os.Getenv("HOST")) == 0 {
if err := godotenv.Load(); err != nil {
log.Fatal(err)
}
godotenv.Load()
}
db.Init()
}
Expand Down

0 comments on commit 2016310

Please sign in to comment.