Skip to content

Commit 2426546

Browse files
committed
fix: env loading failed on docker
1 parent 56dc194 commit 2426546

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,8 @@ func GenerateRandomHex(length int) (string, error) {
3333
}
3434

3535
func main() {
36-
err := godotenv.Load()
37-
if err != nil {
38-
log.Fatal("Error loading .env file")
39-
}
36+
_ = godotenv.Load()
37+
4038
logger := log.New(os.Stdout, "", log.Ldate|log.Ltime)
4139

4240
endpoint := os.Getenv("S3_ENDPOINT")

0 commit comments

Comments
 (0)