Skip to content

Commit 9de2af3

Browse files
authored
fix(autoware_traffic_light_visualization): fix bugprone-branch-clone (#9668)
fix: bugprone-error Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent c17b000 commit 9de2af3

File tree

1 file changed

+1
-2
lines changed
  • perception/autoware_traffic_light_visualization/src/traffic_light_map_visualizer

1 file changed

+1
-2
lines changed

perception/autoware_traffic_light_visualization/src/traffic_light_map_visualizer/node.cpp

+1-2
Original file line numberDiff line numberDiff line change
@@ -169,15 +169,14 @@ void TrafficLightMapVisualizerNode::trafficSignalsCallback(
169169
visualization_msgs::msg::Marker marker;
170170
if (
171171
isAttributeValue(pt, "color", "red") &&
172-
elem.color == autoware_perception_msgs::msg::TrafficLightElement::RED) {
172+
elem.color == autoware_perception_msgs::msg::TrafficLightElement::RED) { // NOLINT
173173
lightAsMarker(
174174
get_node_logging_interface(), pt, &marker, "traffic_light", current_time);
175175
} else if ( // NOLINT
176176
isAttributeValue(pt, "color", "green") &&
177177
elem.color == autoware_perception_msgs::msg::TrafficLightElement::GREEN) {
178178
lightAsMarker(
179179
get_node_logging_interface(), pt, &marker, "traffic_light", current_time);
180-
181180
} else if ( // NOLINT
182181
isAttributeValue(pt, "color", "yellow") &&
183182
elem.color == autoware_perception_msgs::msg::TrafficLightElement::AMBER) {

0 commit comments

Comments
 (0)