Skip to content

Commit

Permalink
feat(engine): switch to no useless return
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreBrisorgueil committed Jul 24, 2020
1 parent 9cb368a commit 8dfd38e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = (options) => {
return (
`Short, imperative tense description of the change (max ${
helpers.maxSummaryLength(options, answers)
} chars):\n`
} chars):`
);
},
default: options.defaultSubject,
Expand Down Expand Up @@ -82,7 +82,7 @@ module.exports = (options) => {
type: 'input',
name: 'body',
message:
'Longer description of the change: (enter to skip)\n',
'Longer description of the change: (enter to skip):',
default: options.defaultBody,
},
{
Expand All @@ -96,7 +96,7 @@ module.exports = (options) => {
name: 'breakingBody',
default: '-',
message:
'Breaking change requires a body :\n',
'Breaking change requires a body :',
when(answers) {
return answers.isBreaking && !answers.body;
},
Expand All @@ -110,7 +110,7 @@ module.exports = (options) => {
{
type: 'input',
name: 'breaking',
message: 'Describe the breaking changes:\n',
message: 'Describe the breaking changes:',
when(answers) {
return answers.isBreaking;
},
Expand All @@ -127,7 +127,7 @@ module.exports = (options) => {
name: 'issuesBody',
default: '-',
message:
'If issues are closed, the commit requires a body :\n',
'If issues are closed, the commit requires a body:',
when(answers) {
return (
answers.isIssueAffected && !answers.body && !answers.breakingBody
Expand All @@ -137,7 +137,7 @@ module.exports = (options) => {
{
type: 'input',
name: 'issues',
message: 'Issue references, "fix #123", "close #123" :\n',
message: 'Issue references, "fix #123", "close #123":',
when(answers) {
return answers.isIssueAffected;
},
Expand Down

0 comments on commit 8dfd38e

Please sign in to comment.