Skip to content

Commit

Permalink
Style
Browse files Browse the repository at this point in the history
Signed-off-by: Yadunund <[email protected]>
  • Loading branch information
Yadunund committed Jan 12, 2024
1 parent 37f44b5 commit da73fdc
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rmw_zenoh_cpp/src/rmw_zenoh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2080,7 +2080,8 @@ static int64_t get_sequence_num_from_attachment(const z_attachment_t * const att
return -1;
} else if (errno != 0) {
// Some other error occurred, which may include overflow or underflow
RMW_SET_ERROR_MSG("An undefined error occurred while getting the sequence number, this may be an overflow");
RMW_SET_ERROR_MSG(
"An undefined error occurred while getting the sequence number, this may be an overflow");
return -1;
}

Expand Down Expand Up @@ -2505,7 +2506,9 @@ rmw_take_request(
// Add this query to the map, so that rmw_send_response can quickly look it up later
{
std::lock_guard<std::mutex> lock(service_data->sequence_to_query_map_mutex);
if (service_data->sequence_to_query_map.find(sequence_number) != service_data->sequence_to_query_map.end()) {
if (service_data->sequence_to_query_map.find(sequence_number) !=
service_data->sequence_to_query_map.end())
{
RMW_SET_ERROR_MSG("duplicate sequence number in the map");
return RMW_RET_ERROR;
}
Expand Down

0 comments on commit da73fdc

Please sign in to comment.