Use conditional expression in declaration
ProprietaryConvert int x; if (cond) x = a; else x = b; to int x = cond ? a : b;.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseConditionalExpressionForDeclarationmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. UseConditionalExpressionForDeclarationInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.