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/log_services.hpp b/redfish-core/lib/log_services.hpp
index 3877541..41438cb 100644
--- a/redfish-core/lib/log_services.hpp
+++ b/redfish-core/lib/log_services.hpp
@@ -1115,7 +1115,7 @@
boost::split(logEntryFields, entry, boost::is_any_of(","),
boost::token_compress_on);
// We need at least a MessageId to be valid
- if (logEntryFields.size() < 1)
+ if (logEntryFields.empty())
{
return 1;
}
@@ -1971,12 +1971,12 @@
}
// If vector is empty, that means skip value larger than total
// log count
- if (logEntries.size() == 0)
+ if (logEntries.empty())
{
asyncResp->res.jsonValue["Members@odata.count"] = logCount;
return;
}
- if (logEntries.size() > 0)
+ if (!logEntries.empty())
{
for (size_t i = 0; i < logEntries.size(); i++)
{