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: Iaf9d170f179f2363b632cbbc7da7b0ea3220aee7
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/item_updater.cpp b/item_updater.cpp
index 1f62133..43c4c8b 100644
--- a/item_updater.cpp
+++ b/item_updater.cpp
@@ -137,10 +137,13 @@
auto activationState = server::Activation::Activations::Invalid;
ItemUpdater::ActivationStatus result;
if (purpose == VersionPurpose::BMC || purpose == VersionPurpose::System)
+ {
result = ItemUpdater::validateSquashFSImage(filePath);
+ }
else
+ {
result = ItemUpdater::ActivationStatus::ready;
-
+ }
AssociationList associations = {};
if (result == ItemUpdater::ActivationStatus::ready)