get_travel_distance: no need for debug output if there is no polyline

This commit is contained in:
Birte Kristina Friesel 2024-08-25 10:47:39 +02:00
parent d26953d13e
commit d189f6f0d2
No known key found for this signature in database
GPG key ID: B63118F7196EA660

View file

@ -1154,7 +1154,8 @@ sub get_travel_distance {
# Work around inconsistencies caused by a multiple EVA IDs mapping to the same station name
if (
not List::MoreUtils::any { $_->[2] and $_->[2] == $from_eva }
@{ $polyline_ref // [] }
and not List::MoreUtils::any { $_->[2] and $_->[2] == $from_eva }
@{ $polyline_ref // [] }
)
{
@ -1170,7 +1171,8 @@ sub get_travel_distance {
}
}
if (
not List::MoreUtils::any { $_->[2] and $_->[2] == $to_eva }
@{ $polyline_ref // [] }
and not List::MoreUtils::any { $_->[2] and $_->[2] == $to_eva }
@{ $polyline_ref // [] }
)
{