Skip to content

Commit

Permalink
fix(autoware_perception_rviz_plugin): fix duplicateBranch warnings (#…
Browse files Browse the repository at this point in the history
…7695)

* fix(autoware_perception_rviz_plugin): fix duplicateBranch warnings

Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>

* style(pre-commit): autofix

---------

Signed-off-by: Ryuta Kambe <ryuta.kambe@tier4.jp>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
veqcc and pre-commit-ci[bot] authored Jul 1, 2024
1 parent d7cc67d commit 3e07609
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,7 @@ visualization_msgs::msg::Marker::SharedPtr get_shape_marker_ptr(
marker_ptr->scale = shape_msg.dimensions;
marker_ptr->color.a = 0.75f;
}
} else if (shape_msg.type == Shape::POLYGON) {
marker_ptr->type = visualization_msgs::msg::Marker::LINE_LIST;
calc_polygon_line_list(shape_msg, marker_ptr->points);
} else {
} else { // including shape_msg.type == Shape::POLYGON
marker_ptr->type = visualization_msgs::msg::Marker::LINE_LIST;
calc_polygon_line_list(shape_msg, marker_ptr->points);
}
Expand Down Expand Up @@ -562,10 +559,7 @@ visualization_msgs::msg::Marker::SharedPtr get_2d_shape_marker_ptr(
} else if (shape_msg.type == Shape::CYLINDER) {
marker_ptr->type = visualization_msgs::msg::Marker::LINE_LIST;
calc_2d_cylinder_bottom_line_list(shape_msg, marker_ptr->points);
} else if (shape_msg.type == Shape::POLYGON) {
marker_ptr->type = visualization_msgs::msg::Marker::LINE_LIST;
calc_2d_polygon_bottom_line_list(shape_msg, marker_ptr->points);
} else {
} else { // including shape_msg.type == Shape::POLYGON
marker_ptr->type = visualization_msgs::msg::Marker::LINE_LIST;
calc_2d_polygon_bottom_line_list(shape_msg, marker_ptr->points);
}
Expand Down

0 comments on commit 3e07609

Please sign in to comment.