Skip to content

Commit

Permalink
resytle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
anush-apple committed Aug 23, 2024
1 parent 9c0fe0a commit 35d220e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDeviceControllerFactory.mm
Original file line number Diff line number Diff line change
Expand Up @@ -1136,7 +1136,7 @@ - (void)operationalInstanceAdded:(chip::PeerId &)operationalID
- (nullable MTRDeviceController *)_findControllerMatchingParams:(MTRDeviceControllerParameters *)parameters
{
std::lock_guard lock(_controllersLock);
for (MTRDeviceController *controller in _controllers) {
for (MTRDeviceController * controller in _controllers) {
if ([controller matchesPendingShutdownWithParams:parameters]) {
MTR_LOG("%@ Found existing controller %@ that is pending shutdown and matching parameters, re-using it", self, controller);
[controller clearPendingShutdown];
Expand All @@ -1153,7 +1153,7 @@ - (nullable MTRDeviceController *)initializeController:(MTRDeviceController *)co
[self _assertCurrentQueueIsNotMatterQueue];

// If there is a controller already running with matching parameters, re-use it
MTRDeviceController *existingController = [self _findControllerMatchingParams:parameters];
MTRDeviceController * existingController = [self _findControllerMatchingParams:parameters];
if (existingController) {
return existingController;
}
Expand Down
4 changes: 2 additions & 2 deletions src/darwin/Framework/CHIP/MTRDeviceControllerStartupParams.mm
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,14 @@ - (void)setOTAProviderDelegate:(id<MTROTAProviderDelegate>)otaProviderDelegate q

+ (nullable NSNumber *)nodeIDFromNOC:(MTRCertificateDERBytes)noc
{
NSNumber *nodeID = nil;
NSNumber * nodeID = nil;
ExtractNodeIDFromNOC(noc, &nodeID);
return nodeID;
}

+ (nullable NSNumber *)fabricIDFromNOC:(MTRCertificateDERBytes)noc
{
NSNumber *fabricID = nil;
NSNumber * fabricID = nil;
ExtractFabricIDFromNOC(noc, &fabricID);
return fabricID;
}
Expand Down
1 change: 0 additions & 1 deletion src/darwin/Framework/CHIP/MTRDeviceController_Internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,6 @@ NS_ASSUME_NONNULL_BEGIN
*/
@property (nonatomic, retain, nullable) NSData * rootPublicKey;


/**
* Init a newly created controller.
*
Expand Down

0 comments on commit 35d220e

Please sign in to comment.