summaryrefslogtreecommitdiff
path: root/redfish-core/src/registries.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/src/registries.cpp')
-rw-r--r--redfish-core/src/registries.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/redfish-core/src/registries.cpp b/redfish-core/src/registries.cpp
index e465b1584c..c727d1c771 100644
--- a/redfish-core/src/registries.cpp
+++ b/redfish-core/src/registries.cpp
@@ -16,8 +16,8 @@ const Message* getMessageFromRegistry(const std::string& messageKey,
{
std::span<const MessageEntry>::iterator messageIt = std::ranges::find_if(
registry, [&messageKey](const MessageEntry& messageEntry) {
- return std::strcmp(messageEntry.first, messageKey.c_str()) == 0;
- });
+ return std::strcmp(messageEntry.first, messageKey.c_str()) == 0;
+ });
if (messageIt != registry.end())
{
return &messageIt->second;