Inspectopedia
 
2024.3

Negated conditional expression

Warning
Last modified: 03 December 2024

Reports conditional expressions which are negated with a prefix expression, as such constructions may be confusing.

There is a fix that propagates the outer negation to both branches.

Example:

After the quick-fix is applied: