Commit f68fed2
http: remove redundant code in _deferToConnect
Logic for calling the passed in socket method and/or callback
was duplicated. This commit refactors the relevant code to
remove the redundancy.
PR-URL: #2769
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Brendan Ashworth <brendan.ashworth@me.com>1 parent cb971cc commit f68fed2Copy full SHA for f68fed2
File tree
Expand file treeCollapse file tree
1 file changed
+12
-10
lines changedOpen diff view settings
Filter options
- lib
Expand file treeCollapse file tree
1 file changed
+12
-10
lines changedOpen diff view settings
Collapse file
+12-10Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
504 | 504 | |
505 | 505 | |
506 | 506 | |
| 507 | + |
| 508 | + |
| 509 | + |
| 510 | + |
| 511 | + |
| 512 | + |
| 513 | + |
| 514 | + |
| 515 | + |
507 | 516 | |
508 | 517 | |
509 | | - |
510 | | - |
511 | | - |
512 | | - |
| 518 | + |
513 | 519 | |
514 | | - |
515 | | - |
516 | | - |
517 | | - |
518 | | - |
519 | | - |
| 520 | + |
520 | 521 | |
521 | 522 | |
| 523 | + |
522 | 524 | |
523 | 525 | |
524 | 526 | |
|
0 commit comments