Skip to content
Permalink
Browse files

Fix: delete unnecessary duplicated question (fixes #11617) (#11618)

* delete unnecessary duplicated question

* Fix: delete unnecessary duplicated question (fixes #11617)
  • Loading branch information...
7ma7X authored and ilyavolodin committed May 11, 2019
1 parent 21dd211 commit 252efd337b1441debb6d2cc8f51a625549b2c535
Showing with 1 addition and 8 deletions.
  1. +1 −8 lib/config/config-initializer.js
@@ -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));
});
});
}

0 comments on commit 252efd3

Please sign in to comment.
You can’t perform that action at this time.