Skip to content

Commit 2014e8e

Browse files
committed
🎨 Style: change return into one liner
1 parent fed34f0 commit 2014e8e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/promptConfig.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ const questions = (choicesList) => {
3333
validate: (input) => {
3434
const warnings = ruleWarningMessages(input);
3535

36-
if (warnings) return warnings;
37-
38-
return true;
36+
return warnings || true;
3937
},
4038
},
4139
{

0 commit comments

Comments
 (0)