From ccc22b820a2c268c2053f25a3f5710958523ec6c Mon Sep 17 00:00:00 2001 From: yunhanw-google Date: Fri, 11 Oct 2024 07:38:25 -0700 Subject: [PATCH] Update DefaultICDClientStorage.cpp Co-authored-by: mkardous-silabs <84793247+mkardous-silabs@users.noreply.github.com> --- src/app/icd/client/DefaultICDClientStorage.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/icd/client/DefaultICDClientStorage.cpp b/src/app/icd/client/DefaultICDClientStorage.cpp index 67d07256bb83ad..e755e85c7166c8 100644 --- a/src/app/icd/client/DefaultICDClientStorage.cpp +++ b/src/app/icd/client/DefaultICDClientStorage.cpp @@ -478,10 +478,7 @@ CHIP_ERROR DefaultICDClientStorage::DeleteEntry(const ScopedNodeId & peerNode) CHIP_ERROR DefaultICDClientStorage::DeleteAllEntries(FabricIndex fabricIndex) { - if (CheckFabricExistence(fabricIndex) != CHIP_NO_ERROR) - { - return CHIP_NO_ERROR; - } + VerifyOrRetunrError (CheckFabricExistence(fabricIndex) == CHIP_NO_ERROR, CHIP_NO_ERROR) size_t clientInfoSize = 0; std::vector clientInfoVector;