Skip to content

Commit

Permalink
fix: trim lint report string for newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
muthukrishnan24 committed Aug 11, 2021
1 parent dd8455d commit 456de62
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions linter.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func (l *Linter) Lint(commitMsg string) (lintReport string, hasError bool, err e
}

lintReport, hasError = l.LintCommit(msg)
lintReport = strings.Trim(lintReport, "\n")
return lintReport, hasError, nil
}

Expand Down

0 comments on commit 456de62

Please sign in to comment.