Skip to content

Commit

Permalink
fix: don't create .env file if not found (#774)
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws authored Aug 20, 2024
1 parent 7e56898 commit fedad8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/env/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
var defaultEnv = ".env"

func ReadEnv(filePath string) (map[string]string, error) {
file, err := os.OpenFile(filePath, os.O_RDONLY|os.O_CREATE, 0o666)
file, err := os.OpenFile(filePath, os.O_RDONLY, 0o666)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit fedad8f

Please sign in to comment.