configfile: add newline at the end
For convenience for the user, add a newline at the end. Reported as #51 .
This commit is contained in:
parent
86afaee200
commit
a74a7e7f54
@ -193,6 +193,8 @@ func (cf *ConfFile) WriteFile() error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
// For convenience for the user, add a newline at the end.
|
||||||
|
js = append(js, '\n')
|
||||||
_, err = fd.Write(js)
|
_, err = fd.Write(js)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user