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.
org. openrewrite. golang. codequality. SimplifyRedundantLogicalExpressionmod run . --recipe= org. openrewrite. golang. codequality. SimplifyRedundantLogicalExpressionInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.