Inspectopedia
 
2024.3

Redundant conditional expression

Warning
Code Style
Last modified: 03 December 2024

Reports ternary conditional operators of the form x ? true : false or similar, which can be trivially simplified.

Example:

After the quick-fix is applied: