Inspectopedia
 
2024.3

Redundant boolean variable check

Info
New
Last modified: 03 December 2024

Reports equality comparison with a boolean literal.

Example:

With the quick-fix applied, the code fragment will be simplified to: