Skip to content

Commit

Permalink
fix(autoware_image_diagnostics): fix bugprone-branch-clone (#9723)
Browse files Browse the repository at this point in the history
fix: bugprone-error

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Dec 23, 2024
1 parent 97bc5a7 commit 4045fb3
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,11 +171,9 @@ void ImageDiagNode::ImageChecker(const sensor_msgs::msg::Image::ConstSharedPtr i
cv::rectangle(
diag_block_image, cv::Point(x, y), cv::Point(x + block_size_h, y + block_size_v),
state_color_map_["BLOCKAGE"], -1, cv::LINE_AA);
} else if (region_state_vec[j] == Image_State::LOW_VIS) {
cv::rectangle(
diag_block_image, cv::Point(x, y), cv::Point(x + block_size_h, y + block_size_v),
state_color_map_["BACKLIGHT"], -1, cv::LINE_AA);
} else if (region_state_vec[j] == Image_State::BACKLIGHT) {
} else if (
region_state_vec[j] == Image_State::LOW_VIS ||
region_state_vec[j] == Image_State::BACKLIGHT) {
cv::rectangle(
diag_block_image, cv::Point(x, y), cv::Point(x + block_size_h, y + block_size_v),
state_color_map_["BACKLIGHT"], -1, cv::LINE_AA);
Expand Down

0 comments on commit 4045fb3

Please sign in to comment.