automatic clang-tidy fixes
Apply fixes automatically generated by clang-tidy when ran with
clang-tidy-20. These appear to be optimization fixes around usage
of std::map and/or std::unordered_map.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ibe1ae1518cb98aa7dbc38cc796ec6ebd6c68743a
diff --git a/src/psu/PSUSensorMain.cpp b/src/psu/PSUSensorMain.cpp
index 55888cf..41072bf 100644
--- a/src/psu/PSUSensorMain.cpp
+++ b/src/psu/PSUSensorMain.cpp
@@ -338,7 +338,7 @@
std::getline(nameFile, pmbusName);
nameFile.close();
- if (sensorTypes.find(pmbusName) == sensorTypes.end())
+ if (!sensorTypes.contains(pmbusName))
{
// To avoid this error message, add your driver name to
// the pmbusNames vector at the top of this file.