From 18f6fd7cf418e06c5660a034c56593837166a34d Mon Sep 17 00:00:00 2001 From: webzwo0i Date: Thu, 30 Jul 2020 15:53:43 +0200 Subject: [PATCH] add eslint hints --- src/node/easysync_tests.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/node/easysync_tests.js b/src/node/easysync_tests.js index 374e949fd..bd7254ac9 100644 --- a/src/node/easysync_tests.js +++ b/src/node/easysync_tests.js @@ -29,6 +29,7 @@ function random() { return Math.floor(Math.random() * maxValue); } + // maxValue is not used this.nextDouble = function (maxValue) { return Math.random(); } @@ -59,6 +60,7 @@ function runTests() { assert(literal(a) + " == " + literal(b)); } + // throughIterator is not used function throughIterator(opsStr) { var iter = Changeset.opIterator(opsStr); var assem = Changeset.opAssembler(); @@ -68,6 +70,7 @@ function runTests() { return assem.toString(); } + // throughSmartAssembler is not used function throughSmartAssembler(opsStr) { var iter = Changeset.opIterator(opsStr); var assem = Changeset.smartOpAssembler(); @@ -295,6 +298,7 @@ function runTests() { print("> runMutateAttributionTest#" + testId); var p = poolOrArray(attribs); var alines2 = Array.prototype.slice.call(alines); + // result is never used var result = Changeset.mutateAttributionLines( Changeset.checkRep(cs), alines2, p); assertEqualArrays(outCorrect, alines2); @@ -485,6 +489,7 @@ function runTests() { // assumes attrib pool like ['apple,','apple,true','banana,','banana,true'] if (opcode == '-' || rand.nextInt(3)) { return ''; + // always true } else if (rand.nextInt(3)) { if (opcode == '+' || rand.nextInt(2)) { return '*' + Changeset.numToString(rand.nextInt(2) * 2 + 1);