Find if (x) true else false patterns

Proprietary

if (x) true else false is just x after Boolean simplification. The longhand only hides intent.

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