Skip to content

Commit 9822815

Browse files
restyled-commitskiel-apple
authored andcommitted
Restyled by clang-format
1 parent 9f8538c commit 9822815

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

src/darwin/Framework/CHIP/MTRDevice.mm

+14-9
Original file line numberDiff line numberDiff line change
@@ -3504,35 +3504,40 @@ - (void)removeClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID
35043504

35053505
#pragma mark Log Help
35063506

3507-
- (NSNumber *)_informationalNumberAtAttributePath:(MTRAttributePath *)attributePath {
3507+
- (NSNumber *)_informationalNumberAtAttributePath:(MTRAttributePath *)attributePath
3508+
{
35083509
auto * cachedData = [self _cachedAttributeValueForPath:attributePath];
35093510

35103511
auto * attrReport = [[MTRAttributeReport alloc] initWithResponseValue:@{
35113512
MTRAttributePathKey : attributePath,
35123513
MTRDataKey : cachedData,
3513-
} error:nil];
3514+
}
3515+
error:nil];
35143516
// REVIEWERS: is it worth logging the `error` above?
35153517

35163518
return attrReport.value;
35173519
}
35183520

3519-
- (NSNumber *)_informationalVendorID {
3521+
- (NSNumber *)_informationalVendorID
3522+
{
35203523
auto * vendorIDPath = [MTRAttributePath attributePathWithEndpointID:@(kRootEndpointId)
3521-
clusterID:@(MTRClusterIDTypeBasicInformationID)
3522-
attributeID:@(MTRClusterBasicAttributeVendorIDID)];
3524+
clusterID:@(MTRClusterIDTypeBasicInformationID)
3525+
attributeID:@(MTRClusterBasicAttributeVendorIDID)];
35233526

35243527
return [self _informationalNumberAtAttributePath:vendorIDPath];
35253528
}
35263529

3527-
- (NSNumber *)_informationalProductID {
3530+
- (NSNumber *)_informationalProductID
3531+
{
35283532
auto * productIDPath = [MTRAttributePath attributePathWithEndpointID:@(kRootEndpointId)
3529-
clusterID:@(MTRClusterIDTypeBasicInformationID)
3530-
attributeID:@(MTRClusterBasicAttributeProductIDID)];
3533+
clusterID:@(MTRClusterIDTypeBasicInformationID)
3534+
attributeID:@(MTRClusterBasicAttributeProductIDID)];
35313535

35323536
return [self _informationalNumberAtAttributePath:productIDPath];
35333537
}
35343538

3535-
- (void)_addInformationalAttributesToCurrentMetricScope {
3539+
- (void)_addInformationalAttributesToCurrentMetricScope
3540+
{
35363541
using namespace chip::Tracing::DarwinFramework;
35373542
MATTER_LOG_METRIC(kMetricDeviceVendorID, [self _informationalVendorID].unsignedShortValue);
35383543
MATTER_LOG_METRIC(kMetricDeviceProductID, [self _informationalProductID].unsignedShortValue);

0 commit comments

Comments
 (0)