Expression is always true or false

Proprietary

Simplify x == x to true and x != x to false.

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

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