From b5723264a7e88f0d66e3571fe2c8e2d530f98950 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 9 Jul 2023 07:07:31 +0200 Subject: HAFAS station board: fix station name display --- lib/Travelynx/Controller/Traveling.pm | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'lib/Travelynx') 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 => [], }; } -- cgit v1.2.3