Use throw expression

Proprietary

Convert null-check-then-throw patterns to throw expressions.

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

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