Skip to content

Commit 4d8b5ed

Browse files
committed
fix: handle error from loading environment variables in Init function
1 parent 7312b88 commit 4d8b5ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/env/env_loader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ func Get() *Config {
99
}
1010

1111
func Init() *Config {
12-
godotenv.Load(".env")
12+
_ = godotenv.Load(".env")
1313
loadConfig()
1414

1515
return &AppConfig

0 commit comments

Comments
 (0)