From fd6af8af2e1d81c22e8971a780609f344844598a Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 4 Mar 2017 20:35:15 -0500 Subject: [PATCH] refactor condition --- lib/contracts/deploy_manager.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/contracts/deploy_manager.js b/lib/contracts/deploy_manager.js index f913ba83..e01b8632 100644 --- a/lib/contracts/deploy_manager.js +++ b/lib/contracts/deploy_manager.js @@ -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; -