summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-14 18:06:19 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-14 18:06:19 +0200
commitf025a2f107bb389b2dbd50ef4e4d4ff912d993a1 (patch)
tree982c4f4bfd424142828bc8a3d9a48f4733e566f0 /lib/Travel
parent52b55d2a5c982c4a56db7dfde4326eb195798c63 (diff)
hafas-m documentation and -m help error handling
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 {