Cleanup of code to pass CI, clang-tidy-13
With the move to clang-tidy-13 entity-manager wasn't passing CI.
src/Utils.cpp:76:34: error: statement should be inside braces
Tested: After code update entity-manager is now passing CI with
clang-tidy-13.
Signed-off-by: Bruce Mitchell <bruce.mitchell@linux.vnet.ibm.com>
Change-Id: I54e9e7b0dc825dc860338df47bad5a5952d80d02
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 489d47a..31a10bc 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -74,7 +74,9 @@
for (const auto& dirPath : dirPaths)
{
if (!fs::exists(dirPath))
+ {
continue;
+ }
for (const auto& p : fs::directory_iterator(dirPath))
{