From 339b881e718e2200633122c18e427c224c09bb40 Mon Sep 17 00:00:00 2001 From: cgewecke Date: Sun, 8 Apr 2018 19:00:17 -0700 Subject: [PATCH] Comment out conditional code (for coveralls) --- lib/instrumenter.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/instrumenter.js b/lib/instrumenter.js index a7db9e3..cc2c424 100644 --- a/lib/instrumenter.js +++ b/lib/instrumenter.js @@ -52,7 +52,8 @@ instrumenter.instrumentConditionalExpression = function instrumentConditionalExp // Very sad, this is the coolest thing in here. return; // ---------------------------------------------------------------------------------------------- - contract.branchId += 1; + + /*contract.branchId += 1; const startline = (contract.instrumented.slice(0, expression.start).match(/\n/g) || []).length + 1; const startcol = expression.start - contract.instrumented.slice(0, expression.start).lastIndexOf('\n') - 1; @@ -107,7 +108,7 @@ instrumenter.instrumentConditionalExpression = function instrumentConditionalExp }); createOrAppendInjectionPoint(contract, expression.alternate.end, { type: 'closeParen', - }); + });*/ }; instrumenter.instrumentStatement = function instrumentStatement(contract, expression) {