mirror of
https://github.com/zulip/zulip.git
synced 2025-11-15 11:22:04 +00:00
eslint: change no-plusplus from warning to 2 and fix violations.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user