Skip to content

Commit

Permalink
configfile: add newline at the end
Browse files Browse the repository at this point in the history
For convenience for the user, add a newline at the end.
Reported as #51 .
  • Loading branch information
rfjakob committed Oct 21, 2016
1 parent 86afaee commit a74a7e7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/configfile/config_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,8 @@ func (cf *ConfFile) WriteFile() error {
if err != nil {
return err
}
// For convenience for the user, add a newline at the end.
js = append(js, '\n')
_, err = fd.Write(js)
if err != nil {
return err
Expand Down

0 comments on commit a74a7e7

Please sign in to comment.