Reports conditional expressions which can be replaced by simpler but equivalent expressions.
ExampleReplacement
condition ? true : false condition
condition ? false : true !condition
value == null ? null : value value
result != 0 ? result : 0 result
a == b ? a : b b