Skip to content

Commit

Permalink
Fix: delete unnecessary duplicated question (fixes #11617) (#11618)
Browse files Browse the repository at this point in the history
* delete unnecessary duplicated question

* Fix: delete unnecessary duplicated question (fixes #11617)
  • Loading branch information
kaisugi authored and ilyavolodin committed May 11, 2019
1 parent 21dd211 commit 252efd3
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/config/config-initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -606,21 +606,14 @@ function promptUser() {
name: "semi",
message: "Do you require semicolons?",
default: true
},
{
type: "list",
name: "format",
message: "What format do you want your config file to be in?",
default: "JavaScript",
choices: ["JavaScript", "YAML", "JSON"]
}
]).then(answers => {
const totalAnswers = Object.assign({}, earlyAnswers, answers);

const config = processAnswers(totalAnswers);
const modules = getModulesList(config);

return askInstallModules(modules).then(() => writeFile(config, answers.format));
return askInstallModules(modules).then(() => writeFile(config, earlyAnswers.format));
});
});
}
Expand Down

0 comments on commit 252efd3

Please sign in to comment.