Skip to content

Commit 8a5d306

Browse files
restyled-commitskiel-apple
authored andcommitted
Restyled by clang-format
1 parent 7456e16 commit 8a5d306

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
@@ -3653,35 +3653,40 @@ - (void)removeClientDataForKey:(NSString *)key endpointID:(NSNumber *)endpointID
36533653

36543654
#pragma mark Log Help
36553655

3656-
- (NSNumber *)_informationalNumberAtAttributePath:(MTRAttributePath *)attributePath {
3656+
- (NSNumber *)_informationalNumberAtAttributePath:(MTRAttributePath *)attributePath
3657+
{
36573658
auto * cachedData = [self _cachedAttributeValueForPath:attributePath];
36583659

36593660
auto * attrReport = [[MTRAttributeReport alloc] initWithResponseValue:@{
36603661
MTRAttributePathKey : attributePath,
36613662
MTRDataKey : cachedData,
3662-
} error:nil];
3663+
}
3664+
error:nil];
36633665
// REVIEWERS: is it worth logging the `error` above?
36643666

36653667
return attrReport.value;
36663668
}
36673669

3668-
- (NSNumber *)_informationalVendorID {
3670+
- (NSNumber *)_informationalVendorID
3671+
{
36693672
auto * vendorIDPath = [MTRAttributePath attributePathWithEndpointID:@(kRootEndpointId)
3670-
clusterID:@(MTRClusterIDTypeBasicInformationID)
3671-
attributeID:@(MTRClusterBasicAttributeVendorIDID)];
3673+
clusterID:@(MTRClusterIDTypeBasicInformationID)
3674+
attributeID:@(MTRClusterBasicAttributeVendorIDID)];
36723675

36733676
return [self _informationalNumberAtAttributePath:vendorIDPath];
36743677
}
36753678

3676-
- (NSNumber *)_informationalProductID {
3679+
- (NSNumber *)_informationalProductID
3680+
{
36773681
auto * productIDPath = [MTRAttributePath attributePathWithEndpointID:@(kRootEndpointId)
3678-
clusterID:@(MTRClusterIDTypeBasicInformationID)
3679-
attributeID:@(MTRClusterBasicAttributeProductIDID)];
3682+
clusterID:@(MTRClusterIDTypeBasicInformationID)
3683+
attributeID:@(MTRClusterBasicAttributeProductIDID)];
36803684

36813685
return [self _informationalNumberAtAttributePath:productIDPath];
36823686
}
36833687

3684-
- (void)_addInformationalAttributesToCurrentMetricScope {
3688+
- (void)_addInformationalAttributesToCurrentMetricScope
3689+
{
36853690
using namespace chip::Tracing::DarwinFramework;
36863691
MATTER_LOG_METRIC(kMetricDeviceVendorID, [self _informationalVendorID].unsignedShortValue);
36873692
MATTER_LOG_METRIC(kMetricDeviceProductID, [self _informationalProductID].unsignedShortValue);

0 commit comments

Comments
 (0)