Implement clang-tidy fixes
clang-tidy allows the CI robot to check many things via static analysis.
All changes here were made by the clang-tidy robot, and include a number
of modernization fixes. updating the tidy file will be done at a later
date.
Signed-off-by: Ed Tanous <etanous@nvidia.com>
Change-Id: I98cc4d600a3c589675507958f6d2350b2141216b
diff --git a/sysfs/util.cpp b/sysfs/util.cpp
index 8266040..214d668 100644
--- a/sysfs/util.cpp
+++ b/sysfs/util.cpp
@@ -59,11 +59,9 @@
return fldr + f;
}
- else
- {
- /* It'll throw an exception when we use it if it's still bad. */
- return original;
- }
+
+ /* It'll throw an exception when we use it if it's still bad. */
+ return original;
}
} // namespace pid_control