eslint: change no-plusplus from warning to 2 and fix violations.

This commit is contained in:
kevv87
2016-11-30 18:05:04 +00:00
committed by Tim Abbott
parent c90da24541
commit e6369fc29b
23 changed files with 41 additions and 41 deletions

View File

@@ -45,7 +45,7 @@ exports.lower_bound = function (array, arg1, arg2, arg3, arg4) {
middle = first + step;
if (less(array[middle], value, middle)) {
first = middle;
first++;
first += 1;
len = len - step - 1;
} else {
len = step;
@@ -144,7 +144,7 @@ exports.robust_uri_decode = function (str) {
if (!(e instanceof URIError)) {
throw e;
}
end--;
end -= 1;
}
}
return '';
@@ -177,7 +177,7 @@ exports.array_compare = function util_array_compare(a, b) {
return false;
}
var i;
for (i = 0; i < a.length; ++i) {
for (i = 0; i < a.length; i += 1) {
if (a[i] !== b[i]) {
return false;
}