diff --git a/src/darwin/Framework/CHIP/MTRDevice_XPC.mm b/src/darwin/Framework/CHIP/MTRDevice_XPC.mm index 590d16155b4f6b..aefa2fffc1eeb7 100644 --- a/src/darwin/Framework/CHIP/MTRDevice_XPC.mm +++ b/src/darwin/Framework/CHIP/MTRDevice_XPC.mm @@ -283,17 +283,17 @@ - (void)downloadLogOfType:(MTRDiagnosticLogType)type completion(nil, [NSError errorWithDomain:MTRErrorDomain code:MTRErrorCodeGeneralError userInfo:nil]); }); }] deviceController:[[self deviceController] uniqueIdentifier] - nodeID:[self nodeID] - downloadLogOfType:type - timeout:timeout - completion:^(NSURL * _Nullable url, NSError * _Nullable error) { - dispatch_async(queue, ^{ - completion(url, error); - if (url) { - [[NSFileManager defaultManager] removeItemAtPath:url.path error:nil]; - } - }); - }]; + nodeID:[self nodeID] + downloadLogOfType:type + timeout:timeout + completion:^(NSURL * _Nullable url, NSError * _Nullable error) { + dispatch_async(queue, ^{ + completion(url, error); + if (url) { + [[NSFileManager defaultManager] removeItemAtPath:url.path error:nil]; + } + }); + }]; } @catch (NSException * exception) { MTR_LOG_ERROR("Exception sending XPC messsage: %@", exception); dispatch_async(queue, ^{