An if/else expression that returns true in one branch and false in
the other is equivalent to the condition itself (or its negation). The
boolean literal branches are redundant and add noise without adding clarity.
How to remediate?
Replace the if/else with the condition directly:
// Before
ifx>0{true}else{false}// After
x>0// Before
ifx>0{false}else{true}// After
!(x>0)