Skip to content

Commit 6e216f8

Browse files
committed
feature #6701 [CS] Avoid using useless expressions (phansys)
This PR was merged into the 2.7 branch. Discussion ---------- [CS] 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 returns or throws something. Commits ------- d96faa4 Avoid using useless expressions
2 parents 4fe59bb + d96faa4 commit 6e216f8

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)