diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2019-02-16 15:57:29 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2019-02-16 15:57:29 +0100 | 
| commit | 60e27adda5e3a2ebfe4c46707411e825bafa49de (patch) | |
| tree | f674e898019dead47c2fd877c6f43fac1f3e5df9 | |
| parent | e745151b7bcc1afda23b5ea5737ab75d493a9877 (diff) | |
perltidy
| -rw-r--r-- | index.pl | 11 | 
1 files changed, 4 insertions, 7 deletions
| @@ -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 ] | 
