summaryrefslogtreecommitdiff
path: root/redfish-core/lib/event_service.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'redfish-core/lib/event_service.hpp')
-rw-r--r--redfish-core/lib/event_service.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/redfish-core/lib/event_service.hpp b/redfish-core/lib/event_service.hpp
index ba391407a0..134ef24a0c 100644
--- a/redfish-core/lib/event_service.hpp
+++ b/redfish-core/lib/event_service.hpp
@@ -429,7 +429,7 @@ inline void requestRoutesEventDestinationCollection(App& app)
registry.begin(), registry.end(),
[&id](const redfish::registries::MessageEntry&
messageEntry) {
- return id.compare(messageEntry.first) == 0;
+ return id == messageEntry.first;
}))
{
validId = true;