Merge pull request #4 from fiatjaf/patch-1

don't fail when a `.env` file is not present
This commit is contained in:
Barry Deen 2024-09-07 13:23:31 -04:00 committed by GitHub
commit ea3c498e24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,10 +121,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"),