Clang-tidy-14 fixes
Do as the robot commands. All changes made automatically by tidy.
Tested: (Thanks Zhikui)
Downloaded and run on system. Sensors scan normally.
Signed-off-by: Ed Tanous <edtanous@google.com>
Change-Id: I752f37c9e7a95aa3be8e6980ba6e4b2b48b3395a
diff --git a/include/Utils.hpp b/include/Utils.hpp
index 05a36a3..8fc5e80 100644
--- a/include/Utils.hpp
+++ b/include/Utils.hpp
@@ -221,7 +221,7 @@
{
std::cerr << "Error getting " << path << ": retries left"
<< retries - 1 << "\n";
- if (!retries)
+ if (retries == 0U)
{
return;
}
@@ -261,7 +261,7 @@
if (ec)
{
std::cerr << "Error calling mapper\n";
- if (!retries)
+ if (retries == 0U)
{
return;
}