.. _no-else-continue: no-else-continue / R1724 ======================== **Message emitted:** ``Unnecessary "%s" after "continue", %s`` **Description:** *Used in order to highlight an unnecessary block of code following an if containing a continue statement. As such, it will warn when it encounters an else following a chain of ifs, all of them containing a continue statement.* **Problematic code:** .. literalinclude:: /data/messages/n/no-else-continue/bad.py :language: python **Correct code:** .. literalinclude:: /data/messages/n/no-else-continue/good.py :language: python Created by the `refactoring `__ checker.