Fix the build
I don't feel like breaking these out at the moment or writing a commit
message. This fixes the build for clang-tidy. If anyone wants to break
these out with appropriate commit messages, feel free.
Change-Id: Id0b65d238dfb9b8036c0ffddf2f32d221e5988c2
Signed-off-by: Ed Tanous <etanous@nvidia.com>
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 5963486..d2bd48f8 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -210,7 +210,7 @@
// An enumerate does not return the target path's properties
continue;
}
- if (dataJson.find(path) == dataJson.end())
+ if (!dataJson.contains(path))
{
for (const auto& [service, interfaces] : interface_map)
{