Skip to content

Commit

Permalink
fix(autoware_traffic_light_visualization): fix bugprone-branch-clone (#…
Browse files Browse the repository at this point in the history
…9668)

fix: bugprone-error

Signed-off-by: kobayu858 <[email protected]>
  • Loading branch information
kobayu858 authored Dec 17, 2024
1 parent c17b000 commit 9de2af3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,15 +169,14 @@ void TrafficLightMapVisualizerNode::trafficSignalsCallback(
visualization_msgs::msg::Marker marker;
if (
isAttributeValue(pt, "color", "red") &&
elem.color == autoware_perception_msgs::msg::TrafficLightElement::RED) {
elem.color == autoware_perception_msgs::msg::TrafficLightElement::RED) { // NOLINT
lightAsMarker(
get_node_logging_interface(), pt, &marker, "traffic_light", current_time);
} else if ( // NOLINT
isAttributeValue(pt, "color", "green") &&
elem.color == autoware_perception_msgs::msg::TrafficLightElement::GREEN) {
lightAsMarker(
get_node_logging_interface(), pt, &marker, "traffic_light", current_time);

} else if ( // NOLINT
isAttributeValue(pt, "color", "yellow") &&
elem.color == autoware_perception_msgs::msg::TrafficLightElement::AMBER) {
Expand Down

0 comments on commit 9de2af3

Please sign in to comment.