clang-tidy: Enable readability-braces-around-statements check
This checks that bodies of if statements and loops
(for, do while, and while) are inside braces.
Change-Id: Ia5924cc4e9dca98cc29bbaa50923e3269db22089
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/bmc_state_manager.cpp b/bmc_state_manager.cpp
index bbea272..c891376 100644
--- a/bmc_state_manager.cpp
+++ b/bmc_state_manager.cpp
@@ -141,7 +141,9 @@
// Check to make sure it can be found
auto iter = SYSTEMD_TABLE.find(tranReq);
if (iter == SYSTEMD_TABLE.end())
+ {
return;
+ }
const auto& sysdUnit = iter->second;