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/redfish-core/lib/sensors.hpp b/redfish-core/lib/sensors.hpp
index 9151d59..781a41c 100644
--- a/redfish-core/lib/sensors.hpp
+++ b/redfish-core/lib/sensors.hpp
@@ -287,7 +287,7 @@
std::string, std::vector<std::string>>>>&
object : subtree)
{
- if (sensorNames->find(object.first) != sensorNames->end())
+ if (sensorNames->contains(object.first))
{
for (const std::pair<std::string, std::vector<std::string>>&
objData : object.second)
@@ -1894,7 +1894,7 @@
const std::string& sensorName = split[5];
BMCWEB_LOG_DEBUG("sensorName {} sensorType {}", sensorName,
sensorType);
- if (sensorNames->find(objPath) == sensorNames->end())
+ if (!sensorNames->contains(objPath))
{
BMCWEB_LOG_DEBUG("{} not in sensor list ", sensorName);
continue;