Skip to content

Commit 1f21fb9

Browse files
Address copilot review
1 parent a785235 commit 1f21fb9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/clusters/icd-management-server/CodegenIntegration.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ LazyRegisteredServerCluster<ICDManagementCluster> gServer;
4040

4141
constexpr chip::BitMask<OptionalCommands> kEnabledCommands()
4242
{
43-
chip::BitMask<OptionalCommands> result;
4443
#if defined(ICD_MANAGEMENT_STAY_ACTIVE_REQUEST_COMMAND)
45-
result.Set(kStayActive);
44+
return chip::BitMask<OptionalCommands>(kStayActive);
45+
#else
46+
return chip::BitMask<OptionalCommands>();
4647
#endif
47-
return result;
4848
}
4949

5050
class IntegrationDelegate : public CodegenClusterIntegration::Delegate
@@ -77,8 +77,8 @@ class IntegrationDelegate : public CodegenClusterIntegration::Delegate
7777
}
7878

7979
gServer.Create(endpointId, *Server::GetInstance().GetSessionKeystore(), Server::GetInstance().GetFabricTable(),
80-
ICDConfigurationData::GetInstance().GetInstance(), optionalAttributeSet, enabledCommands,
81-
userActiveModeTriggerHint, instructionSpan);
80+
ICDConfigurationData::GetInstance(), optionalAttributeSet, enabledCommands, userActiveModeTriggerHint,
81+
instructionSpan);
8282
return gServer.Registration();
8383
}
8484

0 commit comments

Comments
 (0)