Skip to content

Commit

Permalink
Additional refactor leveraging elseif
Browse files Browse the repository at this point in the history
Signed-off-by: Miguel Company <miguelcompany@eprosima.com>
  • Loading branch information
MiguelCompany authored Sep 26, 2024
1 parent 0eddfa9 commit a8edc10
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions test_communication/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,10 @@ if(BUILD_TESTING)
# Decide category based on interface_ns
if(interface_ns STREQUAL "msg")
list(APPEND message_files "${interface_file}")
continue()
endif()
if(interface_ns STREQUAL "srv")
elseif(interface_ns STREQUAL "srv")
list(APPEND service_files "${interface_file}")
continue()
endif()
if(interface_ns STREQUAL "action")
elseif(interface_ns STREQUAL "action")
list(APPEND action_files "${interface_file}")
continue()
endif()
endforeach()

Expand Down

0 comments on commit a8edc10

Please sign in to comment.