From d493f31c5a9697b5e0dcc799c084bf8c8aa8295c Mon Sep 17 00:00:00 2001 From: Joonhaeng Heo Date: Tue, 18 Apr 2023 09:19:58 +0900 Subject: [PATCH] restyle --- src/darwin/Framework/CHIP/MTRBaseDevice.mm | 35 +++++++++++----------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/darwin/Framework/CHIP/MTRBaseDevice.mm b/src/darwin/Framework/CHIP/MTRBaseDevice.mm index 7836c0e7905c5d..32f0c4ae48c58b 100644 --- a/src/darwin/Framework/CHIP/MTRBaseDevice.mm +++ b/src/darwin/Framework/CHIP/MTRBaseDevice.mm @@ -1011,23 +1011,24 @@ - (void)readAttributePaths:(NSArray * _Nullable)attri AttributePathParams * attributePathParamsListToFree = attributePathParamsList.Get(); EventPathParams * eventPathParamsListToFree = eventPathParamsList.Get(); - auto onDone = [resultArray, interactionStatus, bridge, successCb, failureCb, attributePathParamsListToFree, - eventPathParamsListToFree](BufferedReadClientCallback * callback) { - if (*interactionStatus != CHIP_NO_ERROR) { - // Failure - failureCb(bridge, *interactionStatus); - } else { - // Success - successCb(bridge, resultArray); - } - if (attributePathParamsListToFree != nullptr) { - Platform::MemoryFree(attributePathParamsListToFree); - } - if (eventPathParamsListToFree != nullptr) { - Platform::MemoryFree(eventPathParamsListToFree); - } - chip::Platform::Delete(callback); - }; + auto onDone + = [resultArray, interactionStatus, bridge, successCb, failureCb, attributePathParamsListToFree, + eventPathParamsListToFree](BufferedReadClientCallback * callback) { + if (*interactionStatus != CHIP_NO_ERROR) { + // Failure + failureCb(bridge, *interactionStatus); + } else { + // Success + successCb(bridge, resultArray); + } + if (attributePathParamsListToFree != nullptr) { + Platform::MemoryFree(attributePathParamsListToFree); + } + if (eventPathParamsListToFree != nullptr) { + Platform::MemoryFree(eventPathParamsListToFree); + } + chip::Platform::Delete(callback); + }; auto callback = chip::Platform::MakeUnique>( attributePathParamsList.Get(), readParams.mAttributePathParamsListSize, eventPathParamsList.Get(),