Commit e7b8400
http: replace finish() callback with arrow function
Take advantage of arrow function lexical `this` to avoid defining a
`self = this` var which was only used once.
Code relating to the `finish` event was split in to two areas of the
parent function. Gathered it together to clarify association within the
script.
Fixes: #7295
PR-URL: #7378
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 44bc638 commit e7b8400Copy full SHA for e7b8400
File tree
Expand file treeCollapse file tree
1 file changed
+7
-8
lines changedOpen diff view settings
Filter options
- lib
Expand file treeCollapse file tree
1 file changed
+7
-8
lines changedOpen diff view settings
Collapse file
+7-8Lines changed: 7 additions & 8 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
546 | 546 | |
547 | 547 | |
548 | 548 | |
549 | | - |
550 | | - |
551 | | - |
552 | | - |
553 | | - |
554 | | - |
555 | | - |
556 | | - |
557 | 549 | |
558 | 550 | |
559 | 551 | |
| ||
581 | 573 | |
582 | 574 | |
583 | 575 | |
| 576 | + |
| 577 | + |
| 578 | + |
| 579 | + |
| 580 | + |
| 581 | + |
| 582 | + |
584 | 583 | |
585 | 584 | |
586 | 585 | |
|
0 commit comments