Skip to content

Commit d0bd605

Browse files
committed
Remove superfluous newline before Co-authored-by trailers
1 parent 5285a3e commit d0bd605

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

services/pull/pull.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -617,13 +617,6 @@ func GetSquashMergeCommitMessages(pr *models.PullRequest) string {
617617
}
618618
}
619619

620-
if len(authors) > 0 {
621-
if _, err := stringBuilder.WriteRune('\n'); err != nil {
622-
log.Error("Unable to write to string builder Error: %v", err)
623-
return ""
624-
}
625-
}
626-
627620
for _, author := range authors {
628621
if _, err := stringBuilder.Write([]byte("Co-authored-by: ")); err != nil {
629622
log.Error("Unable to write to string builder Error: %v", err)

0 commit comments

Comments
 (0)