Skip to content

Commit

Permalink
InTransit: _epoch: turn undef into undef
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Jan 16, 2025
1 parent 6abf917 commit f79d7c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Travelynx/Model/InTransit.pm
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ my %visibility_atoi = (
sub _epoch {
my ($dt) = @_;

return $dt ? $dt->epoch : 0;
return $dt ? $dt->epoch : undef;
}

sub epoch_to_dt {
Expand Down

0 comments on commit f79d7c1

Please sign in to comment.