Skip to content

Commit

Permalink
get_travel_distance: no need for debug output if there is no polyline
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Aug 25, 2024
1 parent d26953d commit d189f6f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Travelynx/Model/Journeys.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 // [] }
)
{
Expand All @@ -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 // [] }
)
{
Expand Down

0 comments on commit d189f6f

Please sign in to comment.