Inspectopedia
 
2024.3

Excessive range check

Warning
New
Last modified: 03 December 2024

Reports condition chains in which a value range is checked and these condition chains can be simplified to a single check.

The quick-fix replaces a condition chain with a simplified expression:

Example:

After the quick-fix is applied:

Example:

After the quick-fix is applied:

New in 2019.1