Use coalesce expression
ProprietaryConvert null-check conditional to null-coalescing expression.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseCoalesceExpressionFromNullCheckmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. UseCoalesceExpressionFromNullCheckInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.