From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Sun, 6 Apr 2025 17:14:17 +0000 (+0200) Subject: Use shorthand property names X-Git-Tag: live~67^2 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3262bdfd738d3b9e86099faf8815f6bd0861f22b Use shorthand property names --- diff --git a/app/assets/javascripts/index/directions/fossgis_valhalla.js b/app/assets/javascripts/index/directions/fossgis_valhalla.js index 7e20d02d6..2e1295657 100644 --- a/app/assets/javascripts/index/directions/fossgis_valhalla.js +++ b/app/assets/javascripts/index/directions/fossgis_valhalla.js @@ -53,8 +53,8 @@ ]); return { - line: line, - steps: steps, + line, + steps, distance: leg.summary.length * 1000, time: leg.summary.time }; diff --git a/app/assets/javascripts/index/directions/graphhopper.js b/app/assets/javascripts/index/directions/graphhopper.js index 3579fd168..182be4497 100644 --- a/app/assets/javascripts/index/directions/graphhopper.js +++ b/app/assets/javascripts/index/directions/graphhopper.js @@ -30,8 +30,8 @@ steps.at(-1)[0] = "destination"; return { - line: line, - steps: steps, + line, + steps, distance: path.distance, time: path.time / 1000, ascend: path.ascend,