commit 0c8dc8e99aa309f9c7aba860280cc0280b135221
parent 0a58c993692e3ff838ef797c467d41131fd583f3
Author: Sergej Orlov <wladimirych@gmail.com>
Date: Sat, 25 Jan 2020 22:27:34 +0100
fix lint errors (no-plusplus)
Diffstat:
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/lib/leaflet.control.coordinates/formats.js b/src/lib/leaflet.control.coordinates/formats.js
@@ -4,7 +4,7 @@ function formatNumber(value, size, precision = 0) {
}
if (precision > 0) {
- size++;
+ size += 1;
}
return value.toFixed(precision).padStart(size + precision, '0');
diff --git a/src/lib/leaflet.layer.wikimapia/wm-utils.js b/src/lib/leaflet.layer.wikimapia/wm-utils.js
@@ -9,7 +9,7 @@ function getTileId({x, y, z}) {
id.push((x & 1) + (y & 1) * 2);
x >>= 1;
y >>= 1;
- z--;
+ z -= 1;
}
return id.reverse().join('');
}
@@ -83,7 +83,7 @@ function decodePolygon(s) {
var p, l = 0,
c = 0;
do {
- p = s.charCodeAt(i++) - 63;
+ p = s.charCodeAt(i++) - 63; // eslint-disable-line no-plusplus
c |= (p & 31) << l;
l += 5;
} while (p >= 32);
@@ -91,7 +91,7 @@ function decodePolygon(s) {
l = 0;
c = 0;
do {
- p = s.charCodeAt(i++) - 63;
+ p = s.charCodeAt(i++) - 63; // eslint-disable-line no-plusplus
c |= (p & 31) << l;
l += 5;
} while (p >= 32);