Inspectopedia
 
2024.3

'when' that can be simplified by introducing an argument

Info
New
Last modified: 03 December 2024

Reports a when expression that can be simplified by introducing a subject argument.

Example:

The quick fix introduces a subject argument: