Skip to content

Commit

Permalink
Add missing newline to created env files (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
gnarlex authored Mar 4, 2021
1 parent f562099 commit ddf83eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion godotenv.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func Write(envMap map[string]string, filename string) error {
return err
}
defer file.Close()
_, err = file.WriteString(content)
_, err = file.WriteString(content + "\n")
if err != nil {
return err
}
Expand Down

0 comments on commit ddf83eb

Please sign in to comment.