Skip to content

Commit

Permalink
Update DefaultICDClientStorage.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: mkardous-silabs <[email protected]>
  • Loading branch information
yunhanw-google and mkardous-silabs authored Oct 11, 2024
1 parent 35e29e7 commit daeb4a1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/app/icd/client/DefaultICDClientStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -444,10 +444,7 @@ CHIP_ERROR DefaultICDClientStorage::DeleteEntry(const ScopedNodeId & peerNode)
size_t clientInfoSize = 0;
std::vector<ICDClientInfo> clientInfoVector;
ReturnErrorOnFailure(Load(peerNode.GetFabricIndex(), clientInfoVector, clientInfoSize));
if (clientInfoVector.size() == 0)
{
return CHIP_NO_ERROR;
}
VerifyOrReturnError(clientInfoVector.size() > 0, CHIP_NO_ERROR);

for (auto it = clientInfoVector.begin(); it != clientInfoVector.end(); it++)
{
Expand Down

0 comments on commit daeb4a1

Please sign in to comment.