summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-07-09 07:07:31 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-07-09 07:07:31 +0200
commitb5723264a7e88f0d66e3571fe2c8e2d530f98950 (patch)
tree8f6ce7e56ad72e57f659ae0ef0b22e87a378fa3e /lib
parent0b5bc869b5a8117b9eb6ee9aa92ee22eea8274b2 (diff)
HAFAS station board: fix station name display
Diffstat (limited to 'lib')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm
index bbf191d..7c2fe33 100755
--- a/lib/Travelynx/Controller/Traveling.pm
+++ b/lib/Travelynx/Controller/Traveling.pm
@@ -821,9 +821,10 @@ sub station {
} $status->results;
$status = {
station_eva => $status->station->{eva},
- station_name =>
- List::Util::reduce { length($a) < length($b) ? $a : $b }
- @{ $status->station->{names} },
+ station_name => (
+ List::Util::reduce { length($a) < length($b) ? $a : $b }
+ @{ $status->station->{names} }
+ ),
related_stations => [],
};
}