Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 32638a06 authored by Jack He's avatar Jack He
Browse files

[Script] Remove redundant conditional expressions

* a ? true : false -> a
* a ? false : true -> !a
* Fixed using "Redundant conditional expression" inspection in Intellij
* a ? true : b -> a || b
* a ? false : b -> !a && b
* Fixed using "Simplifiable conditional expression" inspection in
  Intellij

Bug: 63597465
Test: make checkbuild, no manual changes, no functional changes
Change-Id: If2ef6a1188260b8c76ea99f7a922f1f1f5fe82ab
parent 32a94e2f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment