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.
Signed-off-by: George Liu <liuxiwei@ieisystem.com>
Change-Id: If2316dc52cbd280971f0333ee805b11e1b99d27f
diff --git a/manager/manager.hpp b/manager/manager.hpp
index 045586f..1f5f0a5 100644
--- a/manager/manager.hpp
+++ b/manager/manager.hpp
@@ -49,14 +49,7 @@
// this case its {fan0, 1, 1}
if (left.name == right.name)
{
- if (left.action == right.action)
- {
- return false;
- }
- else
- {
- return true;
- }
+ return left.action != right.action;
}
return left.name < right.name;
}