Strip trailing continue from loop body
ProprietaryStrip continue when it is the final statement in a loop body, since the loop naturally advances to the next iteration. A continue holding a comment is kept, as is one that is the loop's only statement or ends an else or nested block.
org. openrewrite. python. cleanup. RemoveRedundantContinuemod run . --recipe= org. openrewrite. python. cleanup. RemoveRedundantContinueInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.