Enable readability-container-size-empty tests
This one is a little trivial, but it does help in readability.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I5366d4eec8af2f781b3bad804131ae2eb806e3aa
diff --git a/redfish-core/lib/chassis.hpp b/redfish-core/lib/chassis.hpp
index 8eb9821..7b67380 100644
--- a/redfish-core/lib/chassis.hpp
+++ b/redfish-core/lib/chassis.hpp
@@ -270,7 +270,7 @@
health->populate();
- if (connectionNames.size() < 1)
+ if (connectionNames.empty())
{
BMCWEB_LOG_ERROR << "Got 0 Connection names";
continue;
@@ -375,7 +375,7 @@
// so skip if it is empty
if (propertyName == "SparePartNumber")
{
- if (*value == "")
+ if (value->empty())
{
continue;
}
@@ -514,7 +514,7 @@
continue;
}
- if (connectionNames.size() < 1)
+ if (connectionNames.empty())
{
BMCWEB_LOG_ERROR << "Got 0 Connection names";
continue;