Remove redundant null checks before instanceof
MSALRemoves redundant null checks before instanceof operations since instanceof returns false for null. Removing the extra check simplifies the conditional and makes the null-safety guarantee of instanceof more visible to readers.
org. openrewrite. staticanalysis. RemoveRedundantNullCheckBeforeInstanceofmod run . --recipe= org. openrewrite. staticanalysis. RemoveRedundantNullCheckBeforeInstanceofInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.