From 2ff6c427b0e1bc8f60581be3481699628fdd8a0b Mon Sep 17 00:00:00 2001 From: Jason Bacchetta Date: Wed, 9 Mar 2016 19:14:00 -0600 Subject: [PATCH] Update README.md Add parentheses around argument, to be consistent with section 8.4 (include parentheses when using braces). --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5368efac..603f4f82 100644 --- a/README.md +++ b/README.md @@ -874,7 +874,7 @@ Other Style Guides const itemHeight = (item) => item.height > 256 ? item.largeSize : item.smallSize; // good - const itemHeight = item => { return item.height > 256 ? item.largeSize : item.smallSize; } + const itemHeight = (item) => { return item.height > 256 ? item.largeSize : item.smallSize; } ``` **[⬆ back to top](#table-of-contents)**