Skip to content

Commit 206e13b

Browse files
committed
[guide] remove trailing whitespace
1 parent d293e74 commit 206e13b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,28 +1247,28 @@ Other Style Guides
12471247
- [15.4](#15.4) <a name='15.4'></a> For more information see [Truth Equality and JavaScript](http://javascriptweblog.wordpress.com/2011/02/07/truth-equality-and-javascript/#more-2108) by Angus Croll.
12481248
12491249
- [15.5](#15.5) <a name='15.5'></a> Ternaries should not be nested and generally be single line expressions.
1250-
1250+
12511251
eslint rules: [`no-nested-ternary`](http://eslint.org/docs/rules/no-nested-ternary.html).
1252-
1252+
12531253
```javascript
12541254
//bad
12551255
const foo = maybe1 > maybe2
12561256
? "bar"
12571257
: value1 > value2 ? "baz" : null;
1258-
1258+
12591259
//better
12601260
const maybeNull = value1 > value2 ? 'baz' : null;
1261-
1261+
12621262
const foo = maybe1 > maybe2
12631263
? 'bar'
12641264
: maybeNull;
1265-
1265+
12661266
//best
12671267
const maybeNull = value1 > value2 ? 'baz' : null;
1268-
1268+
12691269
const foo = maybe1 > maybe2 ? 'bar' : maybeNull;
12701270
```
1271-
1271+
12721272
**[⬆ back to top](#table-of-contents)**
12731273
12741274

0 commit comments

Comments
 (0)