mirror of
https://github.com/Luzifer/git-changerelease.git
synced 2024-12-20 19:11:17 +00:00
Fix: Remove whitespace from old log
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
810e271c3b
commit
4f23c1ae0d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -207,7 +207,7 @@ func renderLogAndGetVersion(newVersion *semVer, logs []commit) (*semVer, error)
|
|||
NextVersion: newVersion,
|
||||
Now: time.Now(),
|
||||
LogLines: logs,
|
||||
OldLog: oldLog,
|
||||
OldLog: strings.TrimSpace(oldLog),
|
||||
})
|
||||
if err != nil {
|
||||
return nil, fmt.Errorf("rendering log: %w", err)
|
||||
|
|
Loading…
Reference in a new issue