Formatting: use early continue pattern

This commit is contained in:
2025-10-30 22:18:02 -04:00
parent 07c48d78d1
commit 13a948a2d3
+3 -3
View File
@@ -234,8 +234,9 @@ void UdpCommandDemuxer::processIncomingData()
// Found matching device in temporary collection, invoke matching handlers
for (const auto& cmdHandler : tempIt->second)
{
if (cmdHandler.cmd_set == cmd_set && cmdHandler.cmd_id == cmd_id)
{
if (cmdHandler.cmd_set != cmd_set || cmdHandler.cmd_id != cmd_id)
{ continue; }
try
{
cmdHandler.handler(receiveBuffer, bytesReceived, senderAddr);
@@ -248,7 +249,6 @@ void UdpCommandDemuxer::processIncomingData()
}
}
}
}
return;
}