Skip to content

Commit

Permalink
fix(autoware_behavior_path_planner_common): fix variableScope (#8443)
Browse files Browse the repository at this point in the history
fix:variableScope

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 committed Aug 20, 2024
1 parent d5d6fee commit 4d1c7fc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -283,9 +283,9 @@ std::optional<size_t> findIndexOutOfGoalSearchRange(

// find goal index
size_t min_dist_index;
double min_dist = std::numeric_limits<double>::max();
{
bool found = false;
double min_dist = std::numeric_limits<double>::max();
for (size_t i = 0; i < points.size(); ++i) {
const auto & lane_ids = points.at(i).lane_ids;

Expand Down

0 comments on commit 4d1c7fc

Please sign in to comment.