summaryrefslogtreecommitdiff
path: root/lib/Travel
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-01-02 15:17:54 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-01-02 15:17:54 +0100
commit377d54ef0a064ce24feab05cdbb0733f9967b84d (patch)
tree492423e3fab4ffdcaf6219529e562b5971a59f5b /lib/Travel
parentb682508bc6e0500853c45bddac23d32e92ab6e94 (diff)
train_subtype: return undef if unknown
Diffstat (limited to 'lib/Travel')
-rw-r--r--lib/Travel/Status/DE/DBWagenreihung.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/DBWagenreihung.pm b/lib/Travel/Status/DE/DBWagenreihung.pm
index 8b0d6cc..962211a 100644
--- a/lib/Travel/Status/DE/DBWagenreihung.pm
+++ b/lib/Travel/Status/DE/DBWagenreihung.pm
@@ -207,7 +207,7 @@ sub train_subtype {
if ( $ml{ $likelihood[0] } <= 2 ) {
# inconclusive
- return '???';
+ return undef;
}
return $likelihood[0];