From dd151dc6869b9d4945a9dd2fa15b6afc3e89875f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 3 Sep 2022 16:58:54 +0200 Subject: get_connecting_trains_p: we're doing boolean arithmetic here (fixes 'useless use of numeric lt in void context' warning) --- lib/Travelynx/Controller/Traveling.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index ddb0cf1..27f8ee3 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -76,7 +76,7 @@ sub get_connecting_trains_p { return $promise->reject; } - my $can_check_in = not $arr_epoch or ( $arr_countdown // 1 ) < 0; + my $can_check_in = not $arr_epoch || ( $arr_countdown // 1 ) < 0; $self->iris->get_departures_p( station => $eva, -- cgit v1.2.3