Find if (x) true else false patterns
Proprietaryif (x) true else false is just x after Boolean simplification. The longhand only hides intent.
org. openrewrite. kotlin. bestpractices. FindIfReturnTrueElseFalse$KtRecipemod 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.