Skip to content

Commit 2e3eb2c

Browse files
Fix clang-tidy validation
1 parent cc22f3e commit 2e3eb2c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

examples/all-clusters-app/all-clusters-common/src/bridged-actions-stub.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ CHIP_ERROR ActionsDelegateImpl::ReadEndpointListAtIndex(uint16_t index, Endpoint
4646

4747
bool ActionsDelegateImpl::HaveActionWithId(uint16_t actionId, uint16_t & actionIndex)
4848
{
49-
for (uint16_t i = 0; i < kEndpointList.size(); i++)
49+
for (size_t i = 0; i < kEndpointList.size(); i++)
5050
{
5151
if (kActionList[i].actionID == actionId)
5252
{
53-
actionIndex = i;
53+
actionIndex = (uint16_t) i;
5454
return true;
5555
}
5656
}

src/app/clusters/actions-server/actions-server.cpp

-2
Original file line numberDiff line numberDiff line change
@@ -419,13 +419,11 @@ void ActionsServer::InvokeCommand(HandlerContext & handlerContext)
419419
void ActionsServer::ActionListModified(EndpointId aEndpoint)
420420
{
421421
MarkDirty(aEndpoint, Attributes::ActionList::Id);
422-
return;
423422
}
424423

425424
void ActionsServer::EndpointListModified(EndpointId aEndpoint)
426425
{
427426
MarkDirty(aEndpoint, Attributes::EndpointLists::Id);
428-
return;
429427
}
430428

431429
void MatterActionsPluginServerInitCallback()

0 commit comments

Comments
 (0)