Skip to content

Commit 4307672

Browse files
bzbarsky-applepull[bot]
authored andcommitted
Fix chip-tool remove-keyset command. (#27676)
We were returning without calling SetCommandExitStatus if removing group keys _succeeded_, which is backwards. Fixes #27600
1 parent 987e9cc commit 4307672

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

examples/chip-tool/commands/group/Commands.h

+1-4
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,7 @@ class RemoveKeySet : public CHIPCommand
332332
}
333333
iter->Release();
334334

335-
if (err == CHIP_NO_ERROR)
336-
{
337-
return err;
338-
}
335+
ReturnErrorOnFailure(err);
339336
ReturnErrorOnFailure(groupDataProvider->RemoveKeySet(fabricIndex, keysetId));
340337

341338
SetCommandExitStatus(CHIP_NO_ERROR);

0 commit comments

Comments
 (0)