diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-09-03 16:58:54 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-09-03 16:58:54 +0200 |
commit | dd151dc6869b9d4945a9dd2fa15b6afc3e89875f (patch) | |
tree | ee5a5346d5e97461b5ee5641d0d84b6b92f2de4a /lib/Travelynx/Controller | |
parent | 2f2624a80a4ff2c007af16ce3cb1ffddf9c895cc (diff) |
get_connecting_trains_p: we're doing boolean arithmetic here1.23.11
(fixes 'useless use of numeric lt in void context' warning)
Diffstat (limited to 'lib/Travelynx/Controller')
-rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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, |