Skip to content

Commit bf18aa1

Browse files
authored
fix: commit type 항목 사이에만 쉼표가 들어가도록 수정 (#382)
2 parents 1a24350 + 921929f commit bf18aa1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

backend/src/markdown/builders/git-convention.builder.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,7 @@ export class GitConventionBuilder implements ISectionBuilder {
7777
lines.push('<summary>허용된 커밋 타입(Commit Types) 보기</summary>');
7878
lines.push('<div markdown=”1”>');
7979
lines.push('');
80-
let commits = '';
81-
commitTypes.forEach((type) => {
82-
commits += `\`${type}\`, `;
83-
});
80+
const commits = commitTypes.map((type) => `\`${type}\``).join(', ');
8481
lines.push(commits);
8582
lines.push('');
8683
lines.push('</div>');

0 commit comments

Comments
 (0)