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)
{
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.size = 1;
}
}
catch (e)
@ -128,7 +127,7 @@ function getPotaParks()
if (g_mapSettings.offlineMode == false && g_potaEnabled == 1)
{
getBuffer(
"https://storage.googleapis.com/gt_app/pota.json?cb="+Date.now(),
"https://storage.googleapis.com/gt_app/pota.json?cb=" + Date.now(),
processPotaParks,
null,
"https",
@ -142,8 +141,10 @@ function getPotaParks()
function uniqueArrayFromArray(input)
{
let unique = [];
input.forEach((c) => {
if (!unique.includes(c)) {
input.forEach((c) =>
{
if (!unique.includes(c))
{
unique.push(c);
}
});