Commit 1de7c27
committed
style: combine two nested
The code:
```typescript
if (x) {
if (y) {
// ...
}
}
```
is equivalent to
```typescript
if (x && y) {
// ...
}
```
the latter is shorter and easier to read, so let's use that.ifs1 parent d77d232 commit 1de7c27
1 file changed
Lines changed: 7 additions & 9 deletions
Lines changed: 7 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
277 | 277 | | |
278 | 278 | | |
279 | 279 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
286 | 285 | | |
287 | | - | |
| 286 | + | |
288 | 287 | | |
289 | | - | |
290 | | - | |
| 288 | + | |
291 | 289 | | |
292 | 290 | | |
293 | 291 | | |
| |||
0 commit comments