diff options
author | cjihrig <cjihrig@gmail.com> | 2019-03-12 14:39:06 -0400 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2019-03-25 20:02:10 -0400 |
commit | 5de804e636ce577b46027a24941163a421ada472 (patch) | |
tree | 42189cffb459d3235ecb7a782526e6677c1e695a /lib/internal/http2/compat.js | |
parent | d989e207177f29fe277a010a1d087230aec40a8e (diff) | |
download | android-node-v8-5de804e636ce577b46027a24941163a421ada472.tar.gz android-node-v8-5de804e636ce577b46027a24941163a421ada472.tar.bz2 android-node-v8-5de804e636ce577b46027a24941163a421ada472.zip |
tools: enable getter-return lint rule
PR-URL: https://github.com/nodejs/node/pull/26615
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Diffstat (limited to 'lib/internal/http2/compat.js')
-rw-r--r-- | lib/internal/http2/compat.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/internal/http2/compat.js b/lib/internal/http2/compat.js index 23266eb6c2..84630a3717 100644 --- a/lib/internal/http2/compat.js +++ b/lib/internal/http2/compat.js @@ -462,7 +462,7 @@ class Http2ServerResponse extends Stream { // This is compatible with http1 which removes socket reference // only from ServerResponse but not IncomingMessage if (this[kState].closed) - return; + return undefined; const stream = this[kStream]; const proxySocket = stream[kProxySocket]; |