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