Skip to content

Commit

Permalink
fix: remove verifyorreturn statement after collectlog
Browse files Browse the repository at this point in the history
  • Loading branch information
pimpalemahesh authored and esp committed Jan 3, 2025
1 parent 1b4c56c commit 2a0c268
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,10 @@ CHIP_ERROR LogProvider::GetLogForIntent(IntentEnum intent, MutableByteSpan & out

bool unusedOutIsEndOfLog;
err = CollectLog(sessionHandle, outBuffer, unusedOutIsEndOfLog);
VerifyOrReturnError(CHIP_NO_ERROR == err, err, outBuffer.reduce_size(0));

err = EndLogCollection(sessionHandle, err);
VerifyOrReturnError(CHIP_NO_ERROR == err, err, outBuffer.reduce_size(0));
VerifyOrDo(err == CHIP_NO_ERROR, outBuffer.reduce_size(0));

return CHIP_NO_ERROR;
EndLogCollection(sessionHandle, err);
return err;
}

size_t LogProvider::GetSizeForIntent(IntentEnum intent)
Expand Down

0 comments on commit 2a0c268

Please sign in to comment.