Strip trailing continue from loop body

Proprietary

Strip 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.RemoveRedundantContinue
mod run . --recipe=org.openrewrite.python.cleanup.RemoveRedundantContinue

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