Commit 88eb619
stream: fix duplicate logic in stream destroy
Fix duplicate logic in stream destroy as the same logic is being shared
across methods and thus can be encapsulated into a single method.
PR-URL: #35727
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: Ricky Zhou <0x19951125@gmail.com>1 parent e0a1541 commit 88eb619Copy full SHA for 88eb619
File tree
Expand file treeCollapse file tree
1 file changed
+16
-22
lines changedOpen diff view settings
Filter options
- lib/internal/streams
Expand file treeCollapse file tree
1 file changed
+16
-22
lines changedOpen diff view settings
Collapse file
lib/internal/streams/destroy.js
Copy file name to clipboardExpand all lines: lib/internal/streams/destroy.js+16-22Lines changed: 16 additions & 22 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
8 | 8 | |
9 | 9 | |
10 | 10 | |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
11 | 25 | |
12 | 26 | |
13 | 27 | |
| ||
24 | 38 | |
25 | 39 | |
26 | 40 | |
27 | | - |
28 | | - |
29 | | - |
30 | | - |
31 | | - |
32 | | - |
33 | | - |
34 | | - |
35 | | - |
36 | | - |
37 | | - |
38 | 41 | |
39 | 42 | |
40 | 43 | |
| 44 | + |
41 | 45 | |
42 | 46 | |
43 | 47 | |
| ||
66 | 70 | |
67 | 71 | |
68 | 72 | |
69 | | - |
70 | | - |
71 | | - |
72 | | - |
73 | | - |
74 | | - |
75 | | - |
76 | | - |
77 | | - |
78 | | - |
79 | | - |
| 73 | + |
80 | 74 | |
81 | 75 | |
82 | 76 | |
|
0 commit comments