Inspectopedia
 
2024.3

Redundant 'if' statement

Warning
Code Style
Last modified: 03 December 2024

Reports if statements which can be simplified to single assignment or return statements.

Example:

After the quick-fix is applied: