1
0
Fork 0
mirror of https://github.com/Luzifer/git-changerelease.git synced 2024-12-20 19:11:17 +00:00

Fix missing newline at end of file

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-11-12 13:10:39 +01:00
parent bcb2b3806d
commit 66c64e5d89
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -218,9 +218,6 @@ func renderLogAndGetVersion(newVersion *semVer, logs []commit) (*semVer, error)
return nil, fmt.Errorf("rendering log: %w", err) return nil, fmt.Errorf("rendering log: %w", err)
} }
// Strip whitespaces on start / end
c = bytes.TrimSpace(c)
if err = os.WriteFile(cfg.ChangelogFile, c, fileModeChangelog); err != nil { if err = os.WriteFile(cfg.ChangelogFile, c, fileModeChangelog); err != nil {
return nil, fmt.Errorf("writing changelog: %w", err) return nil, fmt.Errorf("writing changelog: %w", err)
} }