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