Skip to content

Commit

Permalink
Fix chip-tool remove-keyset command. (#27676)
Browse files Browse the repository at this point in the history
We were returning without calling SetCommandExitStatus if removing group keys
_succeeded_, which is backwards.

Fixes #27600
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Jun 19, 2024
1 parent 88d30d5 commit 3c70e46
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions examples/chip-tool/commands/group/Commands.h
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,7 @@ class RemoveKeySet : public CHIPCommand
}
iter->Release();

if (err == CHIP_NO_ERROR)
{
return err;
}
ReturnErrorOnFailure(err);
ReturnErrorOnFailure(groupDataProvider->RemoveKeySet(fabricIndex, keysetId));

SetCommandExitStatus(CHIP_NO_ERROR);
Expand Down

0 comments on commit 3c70e46

Please sign in to comment.