Skip to content

Commit

Permalink
fix: discard problems when .env file doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
Artonus committed Mar 6, 2024
1 parent 43a48af commit 6df594e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,9 @@ package main
import (
"github.com/Artonus/hermes/cmd"
"github.com/joho/godotenv"
"log"
)

func main() {
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
_ = godotenv.Load()
cmd.Execute()
}

0 comments on commit 6df594e

Please sign in to comment.