Skip to content

Commit 4f23c1a

Browse files
committed
Fix: Remove whitespace from old log
Signed-off-by: Knut Ahlers <knut@ahlers.me>
1 parent 810e271 commit 4f23c1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ func renderLogAndGetVersion(newVersion *semVer, logs []commit) (*semVer, error)
207207
NextVersion: newVersion,
208208
Now: time.Now(),
209209
LogLines: logs,
210-
OldLog: oldLog,
210+
OldLog: strings.TrimSpace(oldLog),
211211
})
212212
if err != nil {
213213
return nil, fmt.Errorf("rendering log: %w", err)

0 commit comments

Comments
 (0)