File tree 1 file changed +4
-7
lines changed
src/app/clusters/messages-server
1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -118,30 +118,27 @@ CHIP_ERROR MessagesAttrAccess::Read(const app::ConcreteReadAttributePath & aPath
118
118
119
119
switch (aPath.mAttributeId )
120
120
{
121
- case app::Clusters::Messages::Attributes::Messages::Id: {
121
+ case app::Clusters::Messages::Attributes::Messages::Id:
122
122
if (isDelegateNull (delegate, endpoint))
123
123
{
124
124
return aEncoder.EncodeEmptyList ();
125
125
}
126
126
127
127
return ReadMessages (aEncoder, delegate);
128
- }
129
- case app::Clusters::Messages::Attributes::ActiveMessageIDs::Id: {
128
+ case app::Clusters::Messages::Attributes::ActiveMessageIDs::Id:
130
129
if (isDelegateNull (delegate, endpoint))
131
130
{
132
- return CHIP_NO_ERROR ;
131
+ return aEncoder. EncodeEmptyList () ;
133
132
}
134
133
135
134
return ReadActiveMessageIds (aEncoder, delegate);
136
- }
137
- case app::Clusters::Messages::Attributes::FeatureMap::Id: {
135
+ case app::Clusters::Messages::Attributes::FeatureMap::Id:
138
136
if (isDelegateNull (delegate, endpoint))
139
137
{
140
138
return CHIP_NO_ERROR;
141
139
}
142
140
143
141
return ReadFeatureFlagAttribute (endpoint, aEncoder, delegate);
144
- }
145
142
default :
146
143
break ;
147
144
}
You can’t perform that action at this time.
0 commit comments