Skip to content

Commit

Permalink
fix: 🩹 add subject if no emoji
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymichel committed Sep 12, 2023
1 parent 7551912 commit 12d5aed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,9 @@ function format(answers) {
}

// Optional subject with emoji
const subject = answers.emoji ? `${answers.emoji} ${answers.subject}` : ''
const subject = answers.emoji
? `${answers.emoji} ${answers.subject}`
: answers.subject

// Build head line, add emoji and limit to 100
const head = `${truncate(
Expand Down

0 comments on commit 12d5aed

Please sign in to comment.