mirror of
https://github.com/Luzifer/git-changerelease.git
synced 2024-12-20 19:11:17 +00:00
fix collecting newlines at the bottom
This commit is contained in:
parent
b38ef6f764
commit
e1be3ed9a1
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -167,7 +167,7 @@ func main() {
|
|||
"OldLog": readChangelog(),
|
||||
})
|
||||
|
||||
if err := ioutil.WriteFile(cfg.ChangelogFile, buf.Bytes(), 0644); err != nil {
|
||||
if err := ioutil.WriteFile(cfg.ChangelogFile, bytes.TrimSpace(buf.Bytes()), 0644); err != nil {
|
||||
log.Fatalf("Unable to write new changelog: %s", err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue