Skip to content

Commit

Permalink
Update src/app/ReadClient.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Boris Zbarsky <bzbarsky@apple.com>
  • Loading branch information
yunhanw-google and bzbarsky-apple authored Aug 3, 2022
1 parent 92093d7 commit 268ceee
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/app/ReadClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -504,11 +504,7 @@ CHIP_ERROR ReadClient::ProcessReportData(System::PacketBufferHandle && aPayload)
err = report.GetSubscriptionId(&subscriptionId);
if (CHIP_NO_ERROR == err)
{
if (!IsSubscriptionType())
{
err = CHIP_ERROR_INVALID_ARGUMENT;
goto exit;
}
VerifyOrExit(IsSubscriptionType(), err = CHIP_ERROR_INVALID_ARGUMENT);
if (mWaitingForFirstPrimingReport)
{
mSubscriptionId = subscriptionId;
Expand Down

0 comments on commit 268ceee

Please sign in to comment.