Use coalesce expression instead of 'if'

Proprietary

Replace if (x == null) x = y; with x ??= y.

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

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