mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
Added note about requiring a single return statement.
This commit is contained in:
parent
2fa29124bf
commit
d6bb1b2a12
@ -169,7 +169,7 @@ JavaScript sources in Open MCT should:
|
||||
code, and present these in the following order:
|
||||
* First, variable declarations and initialization.
|
||||
* Secondly, imperative statements.
|
||||
* Finally, the returned value.
|
||||
* Finally, the returned value. Functions should only have a single return statement.
|
||||
1. Avoid the use of "magic" values.
|
||||
eg.
|
||||
```JavaScript
|
||||
|
Loading…
Reference in New Issue
Block a user