Skip to content

Commit 69ceb80

Browse files
restyled-commitstehampson
authored andcommitted
Restyled by clang-format
1 parent a1a3929 commit 69ceb80

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/app/clusters/ecosystem-information-server/ecosystem-information-server.cpp

+12-12
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ CHIP_ERROR AttrAccess::Read(const ConcreteReadAttributePath & aPath, AttributeVa
5858
// TODO(#33223) To improve safety we could make GetEncodableLocationDescriptorStruct a private
5959
// memeber method where we explicitly delete member method for the parameter that matches
6060
// (LocationDescriptorStruct && aLocationDescriptor).
61-
Globals::Structs::LocationDescriptorStruct::Type GetEncodableLocationDescriptorStruct(const LocationDescriptorStruct & aLocationDescriptor)
61+
Globals::Structs::LocationDescriptorStruct::Type
62+
GetEncodableLocationDescriptorStruct(const LocationDescriptorStruct & aLocationDescriptor)
6263
{
6364
Globals::Structs::LocationDescriptorStruct::Type locationDescriptor;
6465
// This would imply data is either not properly validated before being
@@ -191,7 +192,8 @@ EcosystemLocationStruct::Builder & EcosystemLocationStruct::Builder::SetFloorNum
191192
return *this;
192193
}
193194

194-
EcosystemLocationStruct::Builder & EcosystemLocationStruct::Builder::SetAreaTypeTag(std::optional<Globals::AreaTypeTag> aAreaTypeTag)
195+
EcosystemLocationStruct::Builder &
196+
EcosystemLocationStruct::Builder::SetAreaTypeTag(std::optional<Globals::AreaTypeTag> aAreaTypeTag)
195197
{
196198
VerifyOrDie(!mIsAlreadyBuilt);
197199
mLocationDescriptor.mAreaType = aAreaTypeTag;
@@ -285,16 +287,14 @@ CHIP_ERROR EcosystemInformationServer::ReadAttribute(const ConcreteReadAttribute
285287
return EcosystemInformationServer::Instance().EncodeDeviceDirectoryAttribute(aPath.mEndpointId, aEncoder);
286288
case Attributes::LocationDirectory::Id:
287289
return EcosystemInformationServer::Instance().EncodeLocationStructAttribute(aPath.mEndpointId, aEncoder);
288-
case Attributes::ClusterRevision::Id:
289-
{
290-
uint16_t rev = ZCL_ECOSYSTEM_INFORMATION_CLUSTER_REVISION;
291-
return aEncoder.Encode(rev);
292-
}
293-
case Attributes::FeatureMap::Id:
294-
{
295-
uint32_t featureMap = ZCL_ECOSYSTEM_INFORMATION_FEATURE_MAP;
296-
return aEncoder.Encode(featureMap);
297-
}
290+
case Attributes::ClusterRevision::Id: {
291+
uint16_t rev = ZCL_ECOSYSTEM_INFORMATION_CLUSTER_REVISION;
292+
return aEncoder.Encode(rev);
293+
}
294+
case Attributes::FeatureMap::Id: {
295+
uint32_t featureMap = ZCL_ECOSYSTEM_INFORMATION_FEATURE_MAP;
296+
return aEncoder.Encode(featureMap);
297+
}
298298
default:
299299
break;
300300
}

0 commit comments

Comments
 (0)