clang-tidy: Enable readability-simplify-boolean-expr check
This check looks for boolean expressions involving boolean
constants and simplifies them to use the appropriate boolean
expression directly.
Change-Id: I79d7e4486bd0ea5f5b9b5a1644af99384e41e251
Signed-off-by: Pavithra Barithaya <pavithrabarithaya07@gmail.com>
diff --git a/msl_verify.cpp b/msl_verify.cpp
index cf05ea3..d578281 100644
--- a/msl_verify.cpp
+++ b/msl_verify.cpp
@@ -120,11 +120,7 @@
{
std::string msl = getMinimumVersion();
std::string mslRegex{REGEX_BMC_MSL};
- if (!msl.empty() && !mslRegex.empty())
- {
- return true;
- }
- return false;
+ return !msl.empty() && !mslRegex.empty();
}
std::string minimum_ship_level::getMinimumVersion()