Use conditional expression in declaration

Proprietary

Convert int x; if (cond) x = a; else x = b; to int x = cond ? a : b;.

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

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