Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit d0451fc

Browse files
authored
Merge pull request #4610 from matrix-org/t3chguy-patch-1
Update code style to mention switch statements
2 parents 7533a8f + 099c06c commit d0451fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

code_style.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ General Style
151151
Don't set things to undefined. Reserve that value to mean "not yet set to anything."
152152
Boolean objects are verboten.
153153
- Use JSDoc
154+
- Use switch-case statements where there are 5 or more branches running against the same variable.
154155

155156
ECMAScript
156157
----------

0 commit comments

Comments
 (0)