From bf253a603b9caad100e884737d1465fbc3f49013 Mon Sep 17 00:00:00 2001 From: Tobias Beer Date: Sat, 8 Oct 2016 14:32:14 +0200 Subject: [PATCH] Removed unused vars + some whitespace (#2106) --- core/modules/filters.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/modules/filters.js b/core/modules/filters.js index 176316189..76046b828 100644 --- a/core/modules/filters.js +++ b/core/modules/filters.js @@ -20,7 +20,7 @@ Parses an operation (i.e. a run) within a filter string Returns the new start position, after the parsed operation */ function parseFilterOperation(operators,filterString,p) { - var operator, operand, bracketPos, curlyBracketPos; + var nextBracketPos, operator; // Skip the starting square bracket if(filterString.charAt(p++) !== "[") { throw "Missing [ in filter expression"; @@ -33,14 +33,14 @@ function parseFilterOperation(operators,filterString,p) { operator.prefix = filterString.charAt(p++); } // Get the operator name - var nextBracketPos = filterString.substring(p).search(/[\[\{<\/]/); + nextBracketPos = filterString.substring(p).search(/[\[\{<\/]/); if(nextBracketPos === -1) { throw "Missing [ in filter expression"; } nextBracketPos += p; var bracket = filterString.charAt(nextBracketPos); operator.operator = filterString.substring(p,nextBracketPos); - + // Any suffix? var colon = operator.operator.indexOf(':'); if(colon > -1) { @@ -79,7 +79,7 @@ console.log("WARNING: Filter",operator.operator,"has a deprecated regexp operand } break; } - + if(nextBracketPos === -1) { throw "Missing closing bracket in filter expression"; } @@ -87,7 +87,7 @@ console.log("WARNING: Filter",operator.operator,"has a deprecated regexp operand operator.operand = filterString.substring(p,nextBracketPos); } p = nextBracketPos + 1; - + // Push this operator operators.push(operator); } while(filterString.charAt(p) !== "]");