summaryrefslogtreecommitdiff
path: root/lib/Travelynx
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-09-03 16:58:54 +0200
committerDaniel Friesel <derf@finalrewind.org>2022-09-03 16:58:54 +0200
commitdd151dc6869b9d4945a9dd2fa15b6afc3e89875f (patch)
treeee5a5346d5e97461b5ee5641d0d84b6b92f2de4a /lib/Travelynx
parent2f2624a80a4ff2c007af16ce3cb1ffddf9c895cc (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')
-rwxr-xr-xlib/Travelynx/Controller/Traveling.pm2
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,