Find ?.let { } calls at statement position

Proprietary

x?.let { … } at statement position discards its return value, behaving identically to x?.also { … } but reading as a transform. also makes the side-effect-only intent explicit.

org.openrewrite.kotlin.idiom.FindLetAtStatementPosition$KtRecipe
mod run . --recipe='org.openrewrite.kotlin.idiom.FindLetAtStatementPosition$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.