Skip to content

Commit 75930b9

Browse files
committed
mojtaba-proof var name
1 parent 50c49cf commit 75930b9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/lib/geo_location_utils.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function locationToFeature(locationmode, location, features) {
3737
if(!location || typeof location !== 'string') return false;
3838

3939
var locationId = locationmodeToIdFinder[locationmode](location);
40-
var features2;
40+
var filteredFeatures;
4141
var f, i;
4242

4343
if(locationId) {
@@ -48,19 +48,19 @@ function locationToFeature(locationmode, location, features) {
4848
// include state/provinces from USA, Canada, Australia and Brazil
4949
// which have some overlay in their two-letter ids. For example,
5050
// 'WA' is used for both Washington state and Western Australia.
51-
features2 = [];
51+
filteredFeatures = [];
5252
for(i = 0; i < features.length; i++) {
5353
f = features[i];
5454
if(f.properties && f.properties.gu && f.properties.gu === 'USA') {
55-
features2.push(f);
55+
filteredFeatures.push(f);
5656
}
5757
}
5858
} else {
59-
features2 = features;
59+
filteredFeatures = features;
6060
}
6161

62-
for(i = 0; i < features2.length; i++) {
63-
f = features2[i];
62+
for(i = 0; i < filteredFeatures.length; i++) {
63+
f = filteredFeatures[i];
6464
if(f.id === locationId) return f;
6565
}
6666

0 commit comments

Comments
 (0)