get_connecting_trains_p: we're doing boolean arithmetic here

(fixes 'useless use of numeric lt in void context' warning)
This commit is contained in:
Daniel Friesel 2022-09-03 16:58:54 +02:00
parent 2f2624a80a
commit dd151dc686
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005

View file

@ -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,