summaryrefslogtreecommitdiff
path: root/index.pl
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-02-16 15:57:29 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-02-16 15:57:29 +0100
commit60e27adda5e3a2ebfe4c46707411e825bafa49de (patch)
treef674e898019dead47c2fd877c6f43fac1f3e5df9 /index.pl
parente745151b7bcc1afda23b5ea5737ab75d493a9877 (diff)
perltidy
Diffstat (limited to 'index.pl')
-rw-r--r--index.pl11
1 files changed, 4 insertions, 7 deletions
diff --git a/index.pl b/index.pl
index a5b4491..d05ca7c 100644
--- a/index.pl
+++ b/index.pl
@@ -409,14 +409,11 @@ sub handle_request {
# (or used by) marudor.de, it was renamed to 'json'. Many clients won't
# notice this for year to come, so we make sure mode=marudor still works as
# intended.
- if ($template eq 'marudor') {
+ if ( $template eq 'marudor' ) {
$template = 'json';
}
- if (
- not( $template ~~ [qw[app infoscreen json multi single text]] )
- )
- {
+ if ( not( $template ~~ [qw[app infoscreen json multi single text]] ) ) {
$template = 'app';
}
@@ -836,8 +833,8 @@ sub handle_request {
train_no => $result->train_no,
via => [ $result->route_interesting(3) ],
scheduled_route => [ $result->sched_route ],
- route_pre => [ $result->route_pre ],
- route_pre_diff => [
+ route_pre => [ $result->route_pre ],
+ route_pre_diff => [
$self->json_route_diff(
[ $result->route_pre ],
[ $result->sched_route_pre ]