]> git.openstreetmap.org Git - rails.git/commitdiff
Use shorthand property names
authorMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Sun, 6 Apr 2025 17:14:17 +0000 (19:14 +0200)
committerMarwin Hochfelsner <50826859+hlfan@users.noreply.github.com>
Sun, 6 Apr 2025 17:45:20 +0000 (19:45 +0200)
app/assets/javascripts/index/directions/fossgis_valhalla.js
app/assets/javascripts/index/directions/graphhopper.js

index 7e20d02d687ed5a9694700511469ecddb1c38b2d..2e12956577339b61fda00d1af843cea1c3890be6 100644 (file)
@@ -53,8 +53,8 @@
       ]);
 
       return {
       ]);
 
       return {
-        line: line,
-        steps: steps,
+        line,
+        steps,
         distance: leg.summary.length * 1000,
         time: leg.summary.time
       };
         distance: leg.summary.length * 1000,
         time: leg.summary.time
       };
index 3579fd168aa8d4fc69e8f94020238e31b8c0430e..182be4497d38da9481f9a7720de66a4adec2da43 100644 (file)
@@ -30,8 +30,8 @@
       steps.at(-1)[0] = "destination";
 
       return {
       steps.at(-1)[0] = "destination";
 
       return {
-        line: line,
-        steps: steps,
+        line,
+        steps,
         distance: path.distance,
         time: path.time / 1000,
         ascend: path.ascend,
         distance: path.distance,
         time: path.time / 1000,
         ascend: path.ascend,