Inspectopedia
 
2024.3

'when' has only 'else' branch and can be simplified

Info
New
Last modified: 03 December 2024

Reports when expressions with only an else branch that can be simplified.

Simplify expression quick-fix can be used to amend the code automatically.

Example: