Fixed the NOT bugs as reported by a eslint

merge-requests/203/head
Tag 2022-09-19 17:42:20 -07:00
rodzic 19d22940db
commit b43b31e656
2 zmienionych plików z 21 dodań i 20 usunięć

Wyświetl plik

@ -85,11 +85,10 @@ function makeParkFeature(park, active)
} }
if (parkObj.feature == null) if (parkObj.feature == null)
{ {
parkObj.feature = iconFeature(ol.proj.fromLonLat([0,0]), g_gtParkIconActive, 1); parkObj.feature = iconFeature(ol.proj.fromLonLat([0, 0]), g_gtParkIconActive, 1);
} }
feature.key = park; feature.key = park;
feature.size = 1; feature.size = 1;
} }
} }
catch (e) catch (e)
@ -128,7 +127,7 @@ function getPotaParks()
if (g_mapSettings.offlineMode == false && g_potaEnabled == 1) if (g_mapSettings.offlineMode == false && g_potaEnabled == 1)
{ {
getBuffer( getBuffer(
"https://storage.googleapis.com/gt_app/pota.json?cb="+Date.now(), "https://storage.googleapis.com/gt_app/pota.json?cb=" + Date.now(),
processPotaParks, processPotaParks,
null, null,
"https", "https",
@ -142,8 +141,10 @@ function getPotaParks()
function uniqueArrayFromArray(input) function uniqueArrayFromArray(input)
{ {
let unique = []; let unique = [];
input.forEach((c) => { input.forEach((c) =>
if (!unique.includes(c)) { {
if (!unique.includes(c))
{
unique.push(c); unique.push(c);
} }
}); });