Skip to content

Commit 270ee73

Browse files
committed
fixes
1 parent f3ff840 commit 270ee73

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/routes/install.js

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -102,11 +102,9 @@ function searchNpm(app, term) {
102102
}
103103

104104
function promptInstallOptions(app, term, choices) {
105-
let introMessage = `Sorry, no results matches '${term}'`;
106-
107-
if (choices.length > 0) {
108-
introMessage = 'Here\'s what I found. ' + chalk.gray('Official generator → ' + chalk.green(figures.mustache)) + '\n Install one?';
109-
}
105+
const introMessage = choices.length > 0
106+
? 'Here\'s what I found. ' + chalk.gray('Official generator → ' + chalk.green(figures.mustache)) + '\n Install one?'
107+
: `Sorry, no results matches '${term}'`;
110108

111109
const resultsPrompt = {
112110
name: 'toInstall',

0 commit comments

Comments
 (0)