From e38dcc71ba4ed53d3e62ea112e9fea11d8118406 Mon Sep 17 00:00:00 2001 From: fiatjaf_ Date: Sat, 7 Sep 2024 07:10:01 -0300 Subject: [PATCH] don't fail when a `.env` file is not present still try to read it but let people use other ways to set up their environment variables. --- main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.go b/main.go index 2183bab..7129692 100644 --- a/main.go +++ b/main.go @@ -119,10 +119,7 @@ func main() { } func LoadConfig() Config { - err := godotenv.Load(".env") - if err != nil { - log.Fatalf("Error loading .env file") - } + godotenv.Load(".env") config := Config{ RelayName: getEnv("RELAY_NAME"),