perltidy
This commit is contained in:
parent
d4b3dcaf06
commit
b410176e63
2 changed files with 6 additions and 9 deletions
|
@ -55,7 +55,8 @@ sub run {
|
|||
}
|
||||
}
|
||||
if ( not $found_dep ) {
|
||||
$self->app->log->debug("Did not find $dep within journey $train_id");
|
||||
$self->app->log->debug(
|
||||
"Did not find $dep within journey $train_id");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -192,27 +192,23 @@ sub route_diff {
|
|||
# this branch is inefficient, but won't be taken frequently
|
||||
elsif ( not( grep { $_ eq $route[$route_idx] } @sched_route ) ) {
|
||||
push( @json_route,
|
||||
[ $route[$route_idx], undef, { isAdditional => 1 } ],
|
||||
);
|
||||
[ $route[$route_idx], undef, { isAdditional => 1 } ], );
|
||||
$route_idx++;
|
||||
}
|
||||
else {
|
||||
push( @json_route,
|
||||
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ],
|
||||
);
|
||||
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], );
|
||||
$sched_idx++;
|
||||
}
|
||||
}
|
||||
while ( $route_idx <= $#route ) {
|
||||
push( @json_route,
|
||||
[ $route[$route_idx], undef, { isAdditional => 1 } ],
|
||||
);
|
||||
[ $route[$route_idx], undef, { isAdditional => 1 } ], );
|
||||
$route_idx++;
|
||||
}
|
||||
while ( $sched_idx <= $#sched_route ) {
|
||||
push( @json_route,
|
||||
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ],
|
||||
);
|
||||
[ $sched_route[$sched_idx], undef, { isCancelled => 1 } ], );
|
||||
$sched_idx++;
|
||||
}
|
||||
return @json_route;
|
||||
|
|
Loading…
Reference in a new issue