Simplify conditional expression

Proprietary

Simplify cond ? true : false to cond and cond ? false : true to !cond.

OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.SimplifyConditionalExpression
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Simplification.SimplifyConditionalExpression

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.