Skip to content

Commit

Permalink
perltidy
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Sep 4, 2023
1 parent d4b3dca commit b410176
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 2 additions & 1 deletion lib/Travelynx/Command/work.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
12 changes: 4 additions & 8 deletions lib/Travelynx/Helper/IRIS.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b410176

Please sign in to comment.