@@ -377,13 +377,11 @@ class CommandHandler
377
377
* Most applications are likely to use `AddResponseData` as a more convenient
378
378
* one-call that auto-sets command ID and creates the underlying encoders.
379
379
*/
380
- CHIP_ERROR AddResponseData (const ConcreteCommandPath & aRequestCommandPath, CommandId commandId,
381
- EncoderToTLV & encoder)
380
+ CHIP_ERROR AddResponseData (const ConcreteCommandPath & aRequestCommandPath, CommandId commandId, EncoderToTLV & encoder)
382
381
{
383
382
// Return early when response should not be sent out.
384
383
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); });
387
385
}
388
386
389
387
/* *
@@ -702,8 +700,7 @@ class CommandHandler
702
700
* responding to.
703
701
* @param [in] aData the data for the response.
704
702
*/
705
- CHIP_ERROR TryAddResponseData (const ConcreteCommandPath & aRequestCommandPath, CommandId commandId,
706
- EncoderToTLV & encoder)
703
+ CHIP_ERROR TryAddResponseData (const ConcreteCommandPath & aRequestCommandPath, CommandId commandId, EncoderToTLV & encoder)
707
704
{
708
705
ConcreteCommandPath responseCommandPath = { aRequestCommandPath.mEndpointId , aRequestCommandPath.mClusterId , commandId };
709
706
ReturnErrorOnFailure (TryAddResponseDataPreEncode (aRequestCommandPath, responseCommandPath));
0 commit comments