summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travelynx/Command')
-rw-r--r--lib/Travelynx/Command/work.pm14
1 files changed, 4 insertions, 10 deletions
diff --git a/lib/Travelynx/Command/work.pm b/lib/Travelynx/Command/work.pm
index 80c584c..3ca9409 100644
--- a/lib/Travelynx/Command/work.pm
+++ b/lib/Travelynx/Command/work.pm
@@ -84,16 +84,10 @@ sub run {
= first { $_->train_id eq $train_id } @{ $status->{results} };
if ( not $train ) {
- if ( $entry->{real_arr_ts} ) {
- die(
-"could not find train $train_id at $arr -- did it disappear?\n"
- );
- }
- else {
- # If we haven't seen the train yet, its arrival is probably
- # too far in the future. This is not critical.
- return;
- }
+
+ # If we haven't seen the train yet, its arrival is probably
+ # too far in the future. This is not critical.
+ return;
}
$db->update(