Skip to content

Commit ab5910a

Browse files
committed
braces for mulit-line blocks only. optional for single-line blocks. fixes airbnb#3
1 parent 8cef7f1 commit ab5910a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -588,10 +588,14 @@
588588
589589
## <a name='blocks'>Blocks</a>
590590
591-
- Use braces with blocks and always on multiple lines.
591+
- Use braces with all multi-line blocks.
592592
593593
```javascript
594594
// bad
595+
if (test)
596+
return false;
597+
598+
// good
595599
if (test) return false;
596600

597601
// good

0 commit comments

Comments
 (0)