Skip to content

Commit

Permalink
style(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 18, 2024
1 parent de8e23b commit ef83f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion planning/autoware_obstacle_cruise_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1878,7 +1878,7 @@ double ObstacleCruisePlannerNode::calcCollisionTimeMargin(
const double time_to_start_cross =
(rclcpp::Time(collision_points.front().stamp) - now()).seconds();
const double time_to_end_cross = (rclcpp::Time(collision_points.back().stamp) - now()).seconds();

if (time_to_reach_collision_point < time_to_start_cross) { // Ego goes first.
return time_to_start_cross - time_to_reach_collision_point;
}
Expand Down

0 comments on commit ef83f99

Please sign in to comment.