diff --git a/src/darwin/Framework/CHIP/MTRDevice.mm b/src/darwin/Framework/CHIP/MTRDevice.mm index 2b0a202bb96493..eb16b511e2a7b1 100644 --- a/src/darwin/Framework/CHIP/MTRDevice.mm +++ b/src/darwin/Framework/CHIP/MTRDevice.mm @@ -3099,9 +3099,7 @@ - (void)_pruneClustersIn:(MTRDeviceDataValueDictionary)previousServerListValue if ([path.endpoint isEqualToNumber:endpointID] && [toBeRemovedClusters containsObject:path.cluster]) [clusterPathsToRemove addObject:path]; } -} -} -[self _removeClusters:clusterPathsToRemove doRemoveFromDataStore:YES]; + [self _removeClusters:clusterPathsToRemove doRemoveFromDataStore:YES]; } - (void)_pruneAttributesIn:(MTRDeviceDataValueDictionary)previousAttributeListValue