diff --git a/lib/modules/coverage/contract_source.js b/lib/modules/coverage/contract_source.js index 8e8a231a..680d88f8 100644 --- a/lib/modules/coverage/contract_source.js +++ b/lib/modules/coverage/contract_source.js @@ -167,13 +167,13 @@ class ContractSource { let trueExpression = (node.trueBody && node.trueBody.statements && node.trueBody.statements[0]) || node.trueBody; if(trueExpression) { - children = children.concat([].concat(trueExpression)); + children = children.concat(trueExpression); trueExpression._parent = {type: 'b', id: node.id, idx: 0}; } let falseExpression = (node.falseBody && node.falseBody.statements && node.falseBody.statements[0]) || node.falseBody; if(falseExpression) { - children = children.concat([].concat(falseExpression)); + children = children.concat(falseExpression); falseExpression._parent = {type: 'b', id: node.id, idx: 1}; }