Skip to content

Commit

Permalink
dont env if you dont need to
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonLovesDoggo committed Sep 10, 2024
1 parent 7521a7e commit e7035ab
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ func CreateAdminKey(key string) string {
}

func LoadEnv() {
// check if env was loaded via some other format
if os.Getenv("API_ANALYTICS_ENABLED") != "" {
return
}
if _, err := os.Stat(".env"); os.IsNotExist(err) {
log.Println("No .env file found")
} else {
Expand Down

0 comments on commit e7035ab

Please sign in to comment.