Skip to content

Commit e964cd1

Browse files
restyled-commitsnivi-apple
authored andcommitted
Restyled by clang-format
1 parent 2db400e commit e964cd1

File tree

2 files changed

+121
-134
lines changed

2 files changed

+121
-134
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+11-12
Original file line numberDiff line numberDiff line change
@@ -2392,24 +2392,23 @@ - (void)_noteChangeForClusterPath:(MTRClusterPath *)clusterPath
23922392
- (BOOL)_isAttributeAffectingDeviceConfigurationChanged:(MTRAttributePath *)attributePath
23932393
{
23942394
// Check for attributes in the descriptor cluster that affect device configuration changed.
2395-
if (attributePath.cluster.unsignedLongValue == MTRClusterIDTypeDescriptorID)
2396-
{
2395+
if (attributePath.cluster.unsignedLongValue == MTRClusterIDTypeDescriptorID) {
23972396
switch (attributePath.attribute.unsignedLongValue) {
2398-
case MTRAttributeIDTypeClusterDescriptorAttributePartsListID:
2399-
case MTRAttributeIDTypeClusterDescriptorAttributeServerListID:
2400-
case MTRAttributeIDTypeClusterDescriptorAttributeDeviceTypeListID: {
2401-
return YES;
2402-
}
2397+
case MTRAttributeIDTypeClusterDescriptorAttributePartsListID:
2398+
case MTRAttributeIDTypeClusterDescriptorAttributeServerListID:
2399+
case MTRAttributeIDTypeClusterDescriptorAttributeDeviceTypeListID: {
2400+
return YES;
2401+
}
24032402
}
24042403
}
24052404

24062405
// Check for global attributes that affect device configuration changed.
24072406
switch (attributePath.attribute.unsignedLongValue) {
2408-
case MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID:
2409-
case MTRAttributeIDTypeGlobalAttributeAttributeListID:
2410-
case MTRAttributeIDTypeGlobalAttributeClusterRevisionID:
2411-
case MTRAttributeIDTypeGlobalAttributeFeatureMapID:
2412-
return YES;
2407+
case MTRAttributeIDTypeGlobalAttributeAcceptedCommandListID:
2408+
case MTRAttributeIDTypeGlobalAttributeAttributeListID:
2409+
case MTRAttributeIDTypeGlobalAttributeClusterRevisionID:
2410+
case MTRAttributeIDTypeGlobalAttributeFeatureMapID:
2411+
return YES;
24132412
}
24142413
return NO;
24152414
}

0 commit comments

Comments
 (0)