From bd3b05bb00701e56327ef46d431d47df5c88aafb Mon Sep 17 00:00:00 2001 From: Iuri Matias Date: Sat, 29 Oct 2016 12:24:13 -0400 Subject: [PATCH] refactor condition to avoid checking for void 0 --- lib/contracts.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/contracts.js b/lib/contracts.js index 2aa12f574..0c6485715 100644 --- a/lib/contracts.js +++ b/lib/contracts.js @@ -149,9 +149,7 @@ ContractsManager.prototype.build = function(done) { for (var j = 0; j < ref.length; j++) { var arg = ref[j]; if (arg[0] === "$") { - if (self.contractDependencies[className] === void 0) { - self.contractDependencies[className] = []; - } + self.contractDependencies[className] = self.contractDependencies[className] || []; self.contractDependencies[className].push(arg.substr(1)); } }