We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a74b4ce commit 2230a1aCopy full SHA for 2230a1a
src/app/clusters/on-off-server/on-off-server.cpp
@@ -92,7 +92,7 @@ void UpdateModeBaseCurrentModeToOnMode(EndpointId endpoint)
92
template <typename EnumType>
93
bool isKnownEnumValue(EnumType value)
94
{
95
- return (EnsureKnownEnumValue(value) == EnumType::kUnknownEnumValue) ? false : true;
+ return (EnsureKnownEnumValue(value) != EnumType::kUnknownEnumValue);
96
}
97
98
} // namespace
0 commit comments