Skip to content

Commit a8edc10

Browse files
Additional refactor leveraging elseif
Signed-off-by: Miguel Company <[email protected]>
1 parent 0eddfa9 commit a8edc10

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test_communication/CMakeLists.txt

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,10 @@ if(BUILD_TESTING)
4949
# Decide category based on interface_ns
5050
if(interface_ns STREQUAL "msg")
5151
list(APPEND message_files "${interface_file}")
52-
continue()
53-
endif()
54-
if(interface_ns STREQUAL "srv")
52+
elseif(interface_ns STREQUAL "srv")
5553
list(APPEND service_files "${interface_file}")
56-
continue()
57-
endif()
58-
if(interface_ns STREQUAL "action")
54+
elseif(interface_ns STREQUAL "action")
5955
list(APPEND action_files "${interface_file}")
60-
continue()
6156
endif()
6257
endforeach()
6358

0 commit comments

Comments
 (0)