Simplify redundant logical expression
ProprietarySimplify x && x to x, x || x to x, and similarly for & and |, where both sides of a logical or bitwise operator are identical.
OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. SimplifyRedundantLogicalExpressionmod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Simplification. SimplifyRedundantLogicalExpressionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.