Skip to content

Commit

Permalink
Addressed second review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
kkasperczyk-no committed Apr 26, 2022
1 parent 146cc57 commit b6deb4d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/clusters/bindings/PendingNotificationMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,8 @@ class PendingNotificationContext
void IncrementConsumersNumber() { mConsumersNumber++; }
void DecrementConsumersNumber()
{
if (mConsumersNumber > 0)
{
mConsumersNumber--;
}
else
VerifyOrDie(mConsumersNumber > 0);
if (--mConsumersNumber == 0)
{
// Release the context only if there is no pending notification pointing to it context.
if (mPendingNotificationContextReleaseHandler != nullptr)
Expand Down

0 comments on commit b6deb4d

Please sign in to comment.