Skip to content

Commit 8329e63

Browse files
Make sure to not add empty lines at the beginning
1 parent b349a2e commit 8329e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hook/Message/Action/InjectIssueKeyFromBranch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,6 @@ private function createNewCommitMessage(Options $options, CommitMessage $msg, st
116116
*/
117117
private function injectIssueId(string $issueID, string $msg, string $mode, string $prefix): string
118118
{
119-
return $mode === 'prepend' ? $prefix . $issueID . ' ' . $msg : $msg . $prefix . $issueID;
119+
return ltrim($mode === 'prepend' ? $prefix . $issueID . ' ' . $msg : $msg . $prefix . $issueID);
120120
}
121121
}

0 commit comments

Comments
 (0)