Variables should not be self-assigned

MSAL

Self-assignments such as x = x have no effect and indicate a copy-paste error or typo where the left-hand or right-hand side should reference a different variable.

org.openrewrite.staticanalysis.RemoveSelfAssignment
mod run . --recipe=org.openrewrite.staticanalysis.RemoveSelfAssignment

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