]> git.openstreetmap.org Git - rails.git/commitdiff
Fix eslint warnings
authorTom Hughes <tom@compton.nu>
Sat, 29 Feb 2020 17:52:55 +0000 (17:52 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 29 Feb 2020 17:52:55 +0000 (17:52 +0000)
app/assets/javascripts/index/history.js

index fe64c295999792d91f19b5cf28ae4a6b54a987ca..ddb454c13155e770bc4110e8b028d3a054fe13dd 100644 (file)
@@ -41,13 +41,13 @@ OSM.History = function (map) {
 
   function highlightChangeset(id) {
     var layer = group.getLayer(id);
-    if ( layer ) layer.setStyle({ fillOpacity: 0.3, color: "#FF6600", weight: 3 });
+    if (layer) layer.setStyle({ fillOpacity: 0.3, color: "#FF6600", weight: 3 });
     $("#changeset_" + id).addClass("selected");
   }
 
   function unHighlightChangeset(id) {
     var layer = group.getLayer(id);
-    if ( layer ) layer.setStyle({ fillOpacity: 0, color: "#FF9500", weight: 2 });
+    if (layer) layer.setStyle({ fillOpacity: 0, color: "#FF9500", weight: 2 });
     $("#changeset_" + id).removeClass("selected");
   }