summaryrefslogtreecommitdiff
path: root/lib/DBInfoscreen/Controller/Stationboard.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-06 21:58:21 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-06 21:58:21 +0200
commit926c3dd1f595dda431c71e199c81567ee402ad2e (patch)
tree4a93b1b59d104e7339f0c68366ddba8d3372c5cf /lib/DBInfoscreen/Controller/Stationboard.pm
parent3aeaacdf28285b8d8294370a1eb6c3ab21f7dc56 (diff)
Fix uninitialized value warning1.17
Diffstat (limited to 'lib/DBInfoscreen/Controller/Stationboard.pm')
-rw-r--r--lib/DBInfoscreen/Controller/Stationboard.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm
index 08ef638..ed5f2d1 100644
--- a/lib/DBInfoscreen/Controller/Stationboard.pm
+++ b/lib/DBInfoscreen/Controller/Stationboard.pm
@@ -36,7 +36,7 @@ sub result_has_line {
sub result_has_platform {
my ( $result, @platforms ) = @_;
- my $platform = ( split( qr{ }, $result->platform // '' ) )[0];
+ my $platform = ( split( qr{ }, $result->platform // '' ) )[0] // '';
if ( List::MoreUtils::any { $_ eq $platform } @platforms ) {
return 1;