Find ?.let { it.foo() } that could use ?.foo()
Proprietaryx?.let { it.foo() } is the long form of x?.foo() — the safe call already provides the non-null receiver, and the let introduces an unused binding. Drop .let { } and call foo() directly.
org. openrewrite. kotlin. idiom. FindLetItCall$KtRecipemod run . --recipe= 'org. openrewrite. kotlin. idiom. FindLetItCall$KtRecipe'Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.