Skip to content

Commit

Permalink
fix: env loading failed on docker
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Oct 17, 2023
1 parent 56dc194 commit 2426546
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,8 @@ func GenerateRandomHex(length int) (string, error) {
}

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

logger := log.New(os.Stdout, "", log.Ldate|log.Ltime)

endpoint := os.Getenv("S3_ENDPOINT")
Expand Down

0 comments on commit 2426546

Please sign in to comment.