Skip to content

Commit

Permalink
Don't crash if .env is not found
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkelsvartveit committed Sep 14, 2024
1 parent 72ae2c9 commit fe8e5c9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package main

import (
"fmt"
"log"
"net/http"
"text/template"
"time"
Expand All @@ -14,10 +13,7 @@ import (

func main() {
// Load the .env file
err := godotenv.Load()
if err != nil {
log.Fatal("Error loading .env file")
}
godotenv.Load()

r := chi.NewRouter()

Expand Down

0 comments on commit fe8e5c9

Please sign in to comment.