refactor condition to avoid checking for void 0
This commit is contained in:
parent
814c2bc4a4
commit
bd3b05bb00
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue