Inspectopedia
 
2024.3

Redundant labeled return on the last expression in a lambda

Info
New
Last modified: 03 December 2024

Reports labeled returns used on the last expressions in lambdas.

Such returns are redundant and can be safely removed.

Example:

After the quick-fix is applied: