summaryrefslogtreecommitdiff
path: root/lib/Travel/Status/DE/HAFAS.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-09-20 13:04:20 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-09-20 13:04:20 +0200
commit1608d648420def2bdcf54f46c00fa2ebd9ba8bf9 (patch)
treede6d2c6920e0f2f807d9ef8d5fc9c887f2508d44 /lib/Travel/Status/DE/HAFAS.pm
parent476ecf88f84dc52759fbe0a88050d8973b2d5654 (diff)
result->info: return undef if no info is available
Diffstat (limited to 'lib/Travel/Status/DE/HAFAS.pm')
-rw-r--r--lib/Travel/Status/DE/HAFAS.pm4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Travel/Status/DE/HAFAS.pm b/lib/Travel/Status/DE/HAFAS.pm
index ab12cc2..28d069b 100644
--- a/lib/Travel/Status/DE/HAFAS.pm
+++ b/lib/Travel/Status/DE/HAFAS.pm
@@ -305,11 +305,9 @@ sub results {
substr( $date, 6, 0, '20' );
- $info //= q{};
-
# delayReason=" " means no delay reason
if ( $info eq q{ } ) {
- $info = q{};
+ $info = undef;
}
$train =~ s{#.*$}{};