refactor condition

This commit is contained in:
Iuri Matias 2017-03-04 20:35:15 -05:00
parent a527573796
commit fd6af8af2e
1 changed files with 1 additions and 7 deletions

View File

@ -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;