mirror of
https://github.com/element-hq/element-web
synced 2024-11-24 18:25:49 +03:00
Update code style to mention switch statements
This commit is contained in:
parent
26e6447be5
commit
5618c382bd
1 changed files with 1 additions and 0 deletions
|
@ -151,6 +151,7 @@ General Style
|
|||
Don't set things to undefined. Reserve that value to mean "not yet set to anything."
|
||||
Boolean objects are verboten.
|
||||
- Use JSDoc
|
||||
- Use switch-case statements where there are 5 or more branches running against the same variable.
|
||||
|
||||
ECMAScript
|
||||
----------
|
||||
|
|
Loading…
Reference in a new issue