Skip to content

Commit

Permalink
[2.3] [Contributing] Added note about empty returns
Browse files Browse the repository at this point in the history
| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | no
| Applies to    |
| Fixed tickets |
  • Loading branch information
phansys committed Jul 24, 2015
1 parent 8f5338d commit a6e9a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions contributing/code/standards.rst
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,9 @@ Structure
* Add a blank line before ``return`` statements, unless the return is alone
inside a statement-group (like an ``if`` statement);

* Use just ``return;`` instead of ``return null;`` when a function must return void
early;

* Use braces to indicate control structure body regardless of the number of
statements it contains;

Expand Down

0 comments on commit a6e9a10

Please sign in to comment.