eslint: Enable space-infix-ops rule.

More about rule at  https://eslint.org/docs/rules/space-infix-ops
This commit is contained in:
Shubham Dhama
2018-06-05 00:43:07 +05:30
parent c6738889a9
commit cc03f9fb8f
46 changed files with 120 additions and 120 deletions

View File

@@ -72,7 +72,7 @@ exports.save_narrow = function (operators) {
exports.parse_narrow = function (hash) {
var i;
var operators = [];
for (i=1; i<hash.length; i+=2) {
for (i = 1; i < hash.length; i += 2) {
// We don't construct URLs with an odd number of components,
// but the user might write one.
try {
@@ -82,7 +82,7 @@ exports.parse_narrow = function (hash) {
break;
}
var operand = hash_util.decode_operand(operator, hash[i+1] || '');
var operand = hash_util.decode_operand(operator, hash[i + 1] || '');
var negated = false;
if (operator[0] === '-') {
negated = true;