From 3262bdfd738d3b9e86099faf8815f6bd0861f22b Mon Sep 17 00:00:00 2001 From: Marwin Hochfelsner <50826859+hlfan@users.noreply.github.com> Date: Sun, 6 Apr 2025 19:14:17 +0200 Subject: [PATCH] Use shorthand property names --- app/assets/javascripts/index/directions/fossgis_valhalla.js | 4 ++-- app/assets/javascripts/index/directions/graphhopper.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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, -- 2.39.5