diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-04-06 21:58:21 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-04-06 21:58:21 +0200 |
commit | 926c3dd1f595dda431c71e199c81567ee402ad2e (patch) | |
tree | 4a93b1b59d104e7339f0c68366ddba8d3372c5cf /lib/DBInfoscreen | |
parent | 3aeaacdf28285b8d8294370a1eb6c3ab21f7dc56 (diff) |
Fix uninitialized value warning1.17
Diffstat (limited to 'lib/DBInfoscreen')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 2 |
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; |