Show second line by using >= 1 instead of > 1

Signed-off-by: Jonas Franz <info@jonasfranz.software>
This commit is contained in:
Jonas Franz 2018-06-15 13:47:51 +02:00
parent c919b07a53
commit 14f243fc43
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD

View File

@ -323,7 +323,7 @@ func RenderCommitBody(msg, urlPrefix string, metas map[string]string) template.H
// IsMultilineCommitMessage checks to see if a commit message contains multiple lines.
func IsMultilineCommitMessage(msg string) bool {
return strings.Count(strings.TrimSpace(msg), "\n") > 1
return strings.Count(strings.TrimSpace(msg), "\n") >= 1
}
// Actioner describes an action