Unverified Commit d189f6f0 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

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

parent d26953d1
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 // [] }
	  )
	{