Skip to content

Commit d96faa4

Browse files
committed
Avoid using useless expressions
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | yes | Applies to | all | Fixed tickets | N/A Do not use `else`, `elseif`, `break` after `if` and `case` conditions which return or throw something.
1 parent 04edf66 commit d96faa4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

contributing/code/standards.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,9 @@ Structure
175175
switched to opt-in via ``@`` operator.
176176
Read more at :ref:`contributing-code-conventions-deprecations`.
177177

178+
* Do not use ``else``, ``elseif``, ``break`` after ``if`` and ``case`` conditions
179+
which return or throw something.
180+
178181
Naming Conventions
179182
------------------
180183

0 commit comments

Comments
 (0)