mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-26 17:15:08 +01:00
moved common code to the end of method
This commit is contained in:
@@ -118,12 +118,6 @@ module.exports = class extends Generator {
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
this._assignConfigDefaults(this.props);
|
||||
|
||||
for( let c of this.featureChoices ) {
|
||||
c.checked = this._isChecked( 'features', c.value );
|
||||
}
|
||||
|
||||
} else {
|
||||
let r = {};
|
||||
process.stdout.write(reset);
|
||||
@@ -149,10 +143,12 @@ module.exports = class extends Generator {
|
||||
|
||||
this.configurationPassword = r.password0;
|
||||
this.props = {};
|
||||
this._assignConfigDefaults(this.props);
|
||||
|
||||
console.log(chalk.bold.green('Password is set'));
|
||||
}
|
||||
|
||||
this._assignConfigDefaults(this.props);
|
||||
for( let c of this.featureChoices ) {
|
||||
c.checked = this._isChecked( 'features', c.value );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user