Inspectopedia
 
2024.3

Suspicious callable reference used as lambda result

Info
New
Last modified: 03 December 2024

Reports lambda expressions with one callable reference.

It is a common error to replace a lambda with a callable reference without changing curly braces to parentheses.

Example:

After the quick-fix is applied: