We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3ff840 commit 270ee73Copy full SHA for 270ee73
lib/routes/install.js
@@ -102,11 +102,9 @@ function searchNpm(app, term) {
102
}
103
104
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
- }
+ const introMessage = choices.length > 0
+ ? 'Here\'s what I found. ' + chalk.gray('Official generator → ' + chalk.green(figures.mustache)) + '\n Install one?'
+ : `Sorry, no results matches '${term}'`;
110
111
const resultsPrompt = {
112
name: 'toInstall',
0 commit comments