From 767687b297582cc4860159d9cea8a8844d2abbff Mon Sep 17 00:00:00 2001 From: Andre Medeiros Date: Wed, 26 Sep 2018 11:47:02 -0400 Subject: [PATCH] Simplify concat --- lib/modules/coverage/contract_source.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/modules/coverage/contract_source.js b/lib/modules/coverage/contract_source.js index 8e8a231a3..680d88f85 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}; }