Inspectopedia
 
2024.3

Unnecessary parentheses in function call with lambda

Info
New
Last modified: 03 December 2024

Reports redundant empty parentheses of function calls where the only parameter is a lambda that's outside the parentheses.

Use the 'Remove unnecessary parentheses from function call with lambda' quick-fix to clean up the code.

Examples:

After the quick-fix is applied: