From b2e70921092099e3a8273e8d51536789692d2392 Mon Sep 17 00:00:00 2001 From: Arda Date: Sat, 17 Jul 2021 10:44:13 +0700 Subject: [PATCH] remove error when .env not found --- internal/app/app.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/app/app.go b/internal/app/app.go index 728d504..3e30e9d 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -17,8 +17,7 @@ func New() (*App, error) { err := godotenv.Load() if err != nil { - log.Fatal(err.Error()) - return nil, err + log.Println(".env file not found") } MySQLURI := os.Getenv("MYSQL_URI")