From 832e757262e38909d10296e95bc04afd72f23455 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Wed, 20 Jun 2018 14:06:15 -0400 Subject: [PATCH] add triple equals --- lib/contracts/contract_deployer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/contracts/contract_deployer.js b/lib/contracts/contract_deployer.js index 3385d642a..b97bb4750 100644 --- a/lib/contracts/contract_deployer.js +++ b/lib/contracts/contract_deployer.js @@ -152,16 +152,16 @@ class ContractDeployer { accounts = _accounts; // applying deployer account configuration, if any - if (typeof contract.fromIndex == 'number') { + if (typeof contract.fromIndex === 'number') { deploymentAccount = accounts[contract.fromIndex]; if (deploymentAccount === undefined) { return next(__("error deploying") + " " + contract.className + ": " + __("no account found at index") + " " + contract.fromIndex + __(" check the config")); } } - if (typeof contract.from == 'string' && typeof contract.fromIndex != 'undefined') { + if (typeof contract.from === 'string' && typeof contract.fromIndex !== 'undefined') { self.logger.warn(__('Both "from" and "fromIndex" are defined for contract') + ' "' + contract.className + '". ' + __('Using "from" as deployer account.')); } - if (typeof contract.from == 'string') { + if (typeof contract.from === 'string') { deploymentAccount = contract.from; }