Inspectopedia
 
2024.3

Non-strict inequality '>=' or '<=' can be replaced with '=='

Info
New
Last modified: 03 December 2024

Reports inequality conditions that, according to data flow analysis, can be satisfied only for a single operand value. Such conditions could be replaced with equality conditions to make the code clearer.

Example:

New in 2022.2