Skip to content

Commit

Permalink
Journey: only set route_start if it is known
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Aug 2, 2024
1 parent 0467500 commit 2de6379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Travel/Status/DE/HAFAS/Journey.pm
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ sub new {
}
$ref->{is_additional} = $journey->{stbStop}{isAdd};
}
else {
elsif ( $stops[0]{loc} ) {
$ref->{route_start} = $stops[0]{loc}->name;
}

Expand Down

0 comments on commit 2de6379

Please sign in to comment.