Skip to content

Commit 86d60bb

Browse files
committed
fix(@angular/cli): fix issue with console prompt bailing early
fixes #4614
1 parent 34c33b9 commit 86d60bb

File tree

1 file changed

+3
-5
lines changed
  • packages/@angular/cli/ember-cli/lib/ui

1 file changed

+3
-5
lines changed

packages/@angular/cli/ember-cli/lib/ui/index.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,10 @@ UI.prototype.prompt = function(questions, callback) {
174174

175175
// If no callback was provided, automatically return a promise
176176
if (callback) {
177-
inquirer.prompt(questions, callback);
178-
} else {
179-
return new Promise(function(resolve) {
180-
inquirer.prompt(questions, resolve);
181-
});
177+
return inquirer.prompt(questions, callback);
182178
}
179+
180+
return inquirer.prompt(questions);
183181
};
184182

185183
/**

0 commit comments

Comments
 (0)