Enable block-scoped-var eslint rule

This commit is contained in:
Quincy Morgan
2020-10-23 13:38:36 -04:00
parent b1fcebcc56
commit 4059ee5118
7 changed files with 18 additions and 10 deletions
+2 -1
View File
@@ -40,9 +40,10 @@ function vtToGeoJSON(data, tile, mergeCache) {
geometry.coordinates = [geometry.coordinates];
}
var isClipped = false;
// Clip to tile bounds
if (geometry.type === 'MultiPolygon') {
var isClipped = false;
var featureClip = turf_bboxClip(feature, tile.extent.rectangle());
if (!deepEqual(feature.geometry, featureClip.geometry)) {
// feature = featureClip;