Skip to content

Commit dc671c0

Browse files
committed
refactor: inline incoming var
1 parent 8e6f635 commit dc671c0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,7 @@ function impl (req, resOrSocket, headOrNil, {
124124
}
125125

126126
// NOTE http2.Http2ServerRequest doesn't forward stream errors.
127-
const incoming = req.stream || req
128-
129-
incoming.on('error', onError)
127+
(req.stream || req).on('error', onError)
130128

131129
return proxy(req, resOrSocket, options, onRes, onError)
132130
} catch (err) {

0 commit comments

Comments
 (0)