Do not use NaN in comparisons

Proprietary

Comparing with NaN using == always returns false. Use double.IsNaN(x) instead.

OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindNaNComparison
mod run . --recipe=OpenRewrite.Recipes.CSharp.CodeQuality.Performance.FindNaNComparison

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