Use conditional access instead of conditional expression

Proprietary

Transform ternary null-check expressions to use conditional access (?.) with null-coalescing (??) where needed.

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

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