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/authentication.hpp b/include/authentication.hpp
index 3d026f3..c71b5ec 100644
--- a/include/authentication.hpp
+++ b/include/authentication.hpp
@@ -231,8 +231,7 @@
{
return true;
}
- if (crow::webroutes::routes.find(std::string(url)) !=
- crow::webroutes::routes.end())
+ if (crow::webroutes::routes.contains(std::string(url)))
{
return true;
}
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)
{