Skip to content

Commit c11d613

Browse files
authored
fix(autoware_objects_of_interest_marker_interface): fix bugprone-branch-clone (#9671)
Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent d0c39d3 commit c11d613

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

planning/autoware_objects_of_interest_marker_interface/src/objects_of_interest_marker_interface.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,14 @@ ColorRGBA ObjectsOfInterestMarkerInterface::getColor(
7676
const ColorName & color_name, const float alpha)
7777
{
7878
switch (color_name) {
79+
case ColorName::GRAY:
80+
return coloring::getGray(alpha);
7981
case ColorName::GREEN:
8082
return coloring::getGreen(alpha);
8183
case ColorName::AMBER:
8284
return coloring::getAmber(alpha);
8385
case ColorName::RED:
8486
return coloring::getRed(alpha);
85-
case ColorName::GRAY:
86-
return coloring::getGray(alpha);
8787
default:
8888
return coloring::getGray(alpha);
8989
}

0 commit comments

Comments
 (0)