Skip to content

Commit

Permalink
Fix: Make prompting function return consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
SBoudrias committed Mar 25, 2017
1 parent 43e684c commit a1ea3db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ module.exports = class extends Generator {
_askForModuleName() {
if (this.pkg.name || this.options.name) {
this.props.name = this.pkg.name || _.kebabCase(this.options.name);
return;
return Promise.resolve();
}

return askName({
Expand Down Expand Up @@ -170,7 +170,7 @@ module.exports = class extends Generator {
_askForGithubAccount() {
if (this.options.githubAccount) {
this.props.githubAccount = this.options.githubAccount;
return;
return Promise.resolve();
}

return githubUsername(this.props.authorEmail)
Expand Down

0 comments on commit a1ea3db

Please sign in to comment.