Skip to content

Commit 456de62

Browse files
fix: trim lint report string for newlines
1 parent dd8455d commit 456de62

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

linter.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ func (l *Linter) Lint(commitMsg string) (lintReport string, hasError bool, err e
2626
}
2727

2828
lintReport, hasError = l.LintCommit(msg)
29+
lintReport = strings.Trim(lintReport, "\n")
2930
return lintReport, hasError, nil
3031
}
3132

0 commit comments

Comments
 (0)