clang-tidy: Enable readability-simplify-boolean-expr check
This checks for boolean expressions involving boolean constants
and simplifies them to use the appropriate boolean expression
directly.
Change-Id: I4ad7ec4ddfa4cfe9a0cf0d569d3d81c478c1776a
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/utils.cpp b/utils.cpp
index e4f7121..0df843b 100644
--- a/utils.cpp
+++ b/utils.cpp
@@ -233,12 +233,7 @@
chassisId);
std::filesystem::path chassisPowerLossFile{chassisLostPowerFileFmt};
- if (std::filesystem::exists(chassisPowerLossFile))
- {
- return true;
- }
-
- return false;
+ return std::filesystem::exists(chassisPowerLossFile);
}
bool isBmcReady(sdbusplus::bus_t& bus)