Skip to content

Commit

Permalink
fix(obstacle_avoidance_planner): removing unneeded else statement for…
Browse files Browse the repository at this point in the history
… early return

Signed-off-by: AhmedEbrahim <ahmed.a.d.ebrahim@gmail.com>
  • Loading branch information
ahmeddesokyebrahim committed Jul 19, 2023
1 parent 4bf9d17 commit 55818f4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions planning/obstacle_avoidance_planner/src/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,9 +456,8 @@ void ObstacleAvoidancePlanner::insertZeroVelocityOutsideDrivableArea(
motion_utils::insertStopPoint(dist_with_margin, optimized_traj_points);
if (first_outside_idx_with_margin) {
return *first_outside_idx_with_margin;
} else {
return *first_outside_idx;
}
return *first_outside_idx;
}();

publishVirtualWall(optimized_traj_points.at(stop_idx).pose);
Expand Down

0 comments on commit 55818f4

Please sign in to comment.