Skip to content

Commit 8dfd38e

Browse files
feat(engine): switch to no useless return
1 parent 9cb368a commit 8dfd38e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

engine.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ module.exports = (options) => {
5454
return (
5555
`Short, imperative tense description of the change (max ${
5656
helpers.maxSummaryLength(options, answers)
57-
} chars):\n`
57+
} chars):`
5858
);
5959
},
6060
default: options.defaultSubject,
@@ -82,7 +82,7 @@ module.exports = (options) => {
8282
type: 'input',
8383
name: 'body',
8484
message:
85-
'Longer description of the change: (enter to skip)\n',
85+
'Longer description of the change: (enter to skip):',
8686
default: options.defaultBody,
8787
},
8888
{
@@ -96,7 +96,7 @@ module.exports = (options) => {
9696
name: 'breakingBody',
9797
default: '-',
9898
message:
99-
'Breaking change requires a body :\n',
99+
'Breaking change requires a body :',
100100
when(answers) {
101101
return answers.isBreaking && !answers.body;
102102
},
@@ -110,7 +110,7 @@ module.exports = (options) => {
110110
{
111111
type: 'input',
112112
name: 'breaking',
113-
message: 'Describe the breaking changes:\n',
113+
message: 'Describe the breaking changes:',
114114
when(answers) {
115115
return answers.isBreaking;
116116
},
@@ -127,7 +127,7 @@ module.exports = (options) => {
127127
name: 'issuesBody',
128128
default: '-',
129129
message:
130-
'If issues are closed, the commit requires a body :\n',
130+
'If issues are closed, the commit requires a body:',
131131
when(answers) {
132132
return (
133133
answers.isIssueAffected && !answers.body && !answers.breakingBody
@@ -137,7 +137,7 @@ module.exports = (options) => {
137137
{
138138
type: 'input',
139139
name: 'issues',
140-
message: 'Issue references, "fix #123", "close #123" :\n',
140+
message: 'Issue references, "fix #123", "close #123":',
141141
when(answers) {
142142
return answers.isIssueAffected;
143143
},

0 commit comments

Comments
 (0)