Skip to content

Commit ab48371

Browse files
committedFeb 5, 2024
Update per comments
1 parent 03c9fbf commit ab48371

File tree

4 files changed

+7
-34
lines changed

4 files changed

+7
-34
lines changed
 

‎src/app/clusters/account-login-server/account-login-server.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -139,18 +139,11 @@ CHIP_ERROR AccountLoginAttrAccess::Read(const app::ConcreteReadAttributePath & a
139139

140140
switch (aPath.mAttributeId)
141141
{
142-
case app::Clusters::AccountLogin::Attributes::ClusterRevision::Id: {
143-
if (isDelegateNull(delegate, endpoint))
144-
{
145-
return CHIP_NO_ERROR;
146-
}
147-
142+
case app::Clusters::AccountLogin::Attributes::ClusterRevision::Id:
148143
return ReadRevisionAttribute(endpoint, aEncoder, delegate);
149-
}
150-
default: {
144+
default:
151145
break;
152146
}
153-
}
154147

155148
return CHIP_NO_ERROR;
156149
}

‎src/app/clusters/channel-server/channel-server.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -168,18 +168,11 @@ CHIP_ERROR ChannelAttrAccess::Read(const app::ConcreteReadAttributePath & aPath,
168168

169169
return ReadFeatureFlagAttribute(endpoint, aEncoder, delegate);
170170
}
171-
case app::Clusters::Channel::Attributes::ClusterRevision::Id: {
172-
if (isDelegateNull(delegate, endpoint))
173-
{
174-
return CHIP_NO_ERROR;
175-
}
176-
171+
case app::Clusters::Channel::Attributes::ClusterRevision::Id:
177172
return ReadRevisionAttribute(endpoint, aEncoder, delegate);
178-
}
179-
default: {
173+
default:
180174
break;
181175
}
182-
}
183176

184177
return CHIP_NO_ERROR;
185178
}

‎src/app/clusters/content-launch-server/content-launch-server.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,11 @@ CHIP_ERROR ContentLauncherAttrAccess::Read(const app::ConcreteReadAttributePath
167167
return ReadFeatureFlagAttribute(endpoint, aEncoder, delegate);
168168
}
169169
case app::Clusters::ContentLauncher::Attributes::ClusterRevision::Id: {
170-
if (isDelegateNull(delegate, endpoint))
171-
{
172-
return CHIP_NO_ERROR;
173-
}
174-
175170
return ReadRevisionAttribute(endpoint, aEncoder, delegate);
176171
}
177-
default: {
172+
default:
178173
break;
179174
}
180-
}
181175

182176
return CHIP_NO_ERROR;
183177
}

‎src/app/clusters/target-navigator-server/target-navigator-server.cpp

+2-9
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,11 @@ CHIP_ERROR TargetNavigatorAttrAccess::Read(const app::ConcreteReadAttributePath
156156

157157
return ReadCurrentTargetAttribute(aEncoder, delegate);
158158
}
159-
case app::Clusters::TargetNavigator::Attributes::ClusterRevision::Id: {
160-
if (isDelegateNull(delegate, endpoint))
161-
{
162-
return CHIP_NO_ERROR;
163-
}
164-
159+
case app::Clusters::TargetNavigator::Attributes::ClusterRevision::Id:
165160
return ReadRevisionAttribute(endpoint, aEncoder, delegate);
166-
}
167-
default: {
161+
default:
168162
break;
169163
}
170-
}
171164

172165
return CHIP_NO_ERROR;
173166
}

0 commit comments

Comments
 (0)