Skip to content

Commit 194e0e5

Browse files
committed
another comment update
1 parent 99d891f commit 194e0e5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/data-model-providers/codegen/CodegenDataModelProvider.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ CHIP_ERROR FetchAcceptedCommands(const ConcreteClusterPath & path, const EmberAf
126126

127127
if ((serverCluster == nullptr) || (serverCluster->acceptedCommandList == nullptr))
128128
{
129-
// No data if cluster is not valid.
129+
// No data if cluster no cluster or cluster has no accepted commands
130130
return CHIP_NO_ERROR;
131131
}
132132
const chip::CommandId * endOfList = serverCluster->acceptedCommandList;
@@ -207,7 +207,8 @@ CHIP_ERROR FetchGeneratedCommands(const ConcreteClusterPath & path, const EmberA
207207

208208
if ((serverCluster == nullptr) || (serverCluster->generatedCommandList == nullptr))
209209
{
210-
return {};
210+
// No data if cluster no cluster or cluster has no generated commands
211+
return CHIP_NO_ERROR;
211212
}
212213
const chip::CommandId * endOfList = serverCluster->generatedCommandList;
213214
while (*endOfList != kInvalidCommandId)

0 commit comments

Comments
 (0)