summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index 2a7bb11..8d33ec9 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -333,9 +333,10 @@ sub get_services {
sub get_service {
my ($service) = @_;
- $service //= 'DB';
-
- return $hafas_instance{$service};
+ if ( defined $service ) {
+ return $hafas_instance{$service};
+ }
+ return;
}
sub get_active_service {