From c0e6b62625160255511220747c80bb071a48825d Mon Sep 17 00:00:00 2001 From: nitezs Date: Sun, 17 Sep 2023 17:02:59 +0800 Subject: [PATCH] fix --- config/config.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index 14c7691..d7f7978 100644 --- a/config/config.go +++ b/config/config.go @@ -30,10 +30,7 @@ func init() { LogLevel: "info", BasePath: "/", } - err := godotenv.Load() - if err != nil { - return - } + _ = godotenv.Load() if os.Getenv("PORT") != "" { atoi, err := strconv.Atoi(os.Getenv("PORT")) if err != nil {