Skip to content

Commit

Permalink
remove error when .env not found
Browse files Browse the repository at this point in the history
  • Loading branch information
ardafirdausr committed Jul 17, 2021
1 parent 49ed4e8 commit b2e7092
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit b2e7092

Please sign in to comment.