refactor condition
This commit is contained in:
parent
a527573796
commit
fd6af8af2e
|
@ -11,12 +11,7 @@ var DeployManager = function(options) {
|
|||
this.plugins = options.plugins;
|
||||
this.events = options.events;
|
||||
this.web3 = options.web3;
|
||||
// TODO: lol, redo this
|
||||
if (options.trackContracts !== false) {
|
||||
this.chainConfig = this.config.chainTracker;
|
||||
} else {
|
||||
this.chainConfig = false;
|
||||
}
|
||||
this.chainConfig = (options.trackContracts !== false) ? this.config.chainTracker : false;
|
||||
};
|
||||
|
||||
DeployManager.prototype.deployContracts = function(done) {
|
||||
|
@ -87,4 +82,3 @@ DeployManager.prototype.deployContracts = function(done) {
|
|||
};
|
||||
|
||||
module.exports = DeployManager;
|
||||
|
||||
|
|
Loading…
Reference in New Issue