Skip to content

Commit

Permalink
Added suggestions
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Apr 17, 2024
1 parent e59a13d commit 4785b26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpp/fastdds/core/policy/ParameterList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ bool ParameterList::read_guid_from_cdr_msg(
valid = true;
valid &= fastrtps::rtps::CDRMessage::readUInt16(&msg, &pid);
valid &= fastrtps::rtps::CDRMessage::readUInt16(&msg, &plength);
if ((pid == PID_SENTINEL) || !valid)
if (!valid || (pid == PID_SENTINEL))
{
break;
}
Expand Down

0 comments on commit 4785b26

Please sign in to comment.