Inspectopedia
 
2024.3

Redundant variable used as 'return' value

Warning
New
Last modified: 03 December 2024

Reports variables used as return values.

Example:

A quick-fix is available to remove those variables. After the quick-fix is applied, the result looks like this: