summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-10-16 03:56:08 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-10-16 03:56:08 +0200
commit663a1723da54c7a06e870447b1c60f845bd960aa (patch)
tree2fe757a56045a43345c8fcf883b394b2d7f28e69
parent0e1e9168e74981aa9f121cc269fa7010fefac62f (diff)
format_route: platform may be undef
-rwxr-xr-xbin/efa-m5
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/efa-m b/bin/efa-m
index 05fd735..51f1585 100755
--- a/bin/efa-m
+++ b/bin/efa-m
@@ -237,7 +237,8 @@ sub format_route {
$output .= sprintf(
" %5s %s %s %35s %s\n",
$stop->arr->strftime('%H:%M'),
- $delay, $occupancy, $stop->full_name, $stop->platform,
+ $delay, $occupancy, $stop->full_name,
+ $stop->platform // q{},
);
}
else {
@@ -248,7 +249,7 @@ sub format_route {
$delay,
$occupancy,
$stop->full_name,
- $stop->platform,
+ $stop->platform // q{},
);
}
}