Skip to content

Commit 79112c8

Browse files
committedMay 29, 2024
Restyle
1 parent 9f6f8fb commit 79112c8

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed
 

‎src/app/CommandHandler.h

+3-6
Original file line numberDiff line numberDiff line change
@@ -377,13 +377,11 @@ class CommandHandler
377377
* Most applications are likely to use `AddResponseData` as a more convenient
378378
* one-call that auto-sets command ID and creates the underlying encoders.
379379
*/
380-
CHIP_ERROR AddResponseData(const ConcreteCommandPath & aRequestCommandPath, CommandId commandId,
381-
EncoderToTLV & encoder)
380+
CHIP_ERROR AddResponseData(const ConcreteCommandPath & aRequestCommandPath, CommandId commandId, EncoderToTLV & encoder)
382381
{
383382
// Return early when response should not be sent out.
384383
VerifyOrReturnValue(ResponsesAccepted(), CHIP_NO_ERROR);
385-
return TryAddingResponse(
386-
[&]() -> CHIP_ERROR { return TryAddResponseData(aRequestCommandPath, commandId, encoder); });
384+
return TryAddingResponse([&]() -> CHIP_ERROR { return TryAddResponseData(aRequestCommandPath, commandId, encoder); });
387385
}
388386

389387
/**
@@ -702,8 +700,7 @@ class CommandHandler
702700
* responding to.
703701
* @param [in] aData the data for the response.
704702
*/
705-
CHIP_ERROR TryAddResponseData(const ConcreteCommandPath & aRequestCommandPath, CommandId commandId,
706-
EncoderToTLV & encoder)
703+
CHIP_ERROR TryAddResponseData(const ConcreteCommandPath & aRequestCommandPath, CommandId commandId, EncoderToTLV & encoder)
707704
{
708705
ConcreteCommandPath responseCommandPath = { aRequestCommandPath.mEndpointId, aRequestCommandPath.mClusterId, commandId };
709706
ReturnErrorOnFailure(TryAddResponseDataPreEncode(aRequestCommandPath, responseCommandPath));

0 commit comments

Comments
 (0)