From 5de804e636ce577b46027a24941163a421ada472 Mon Sep 17 00:00:00 2001 From: cjihrig Date: Tue, 12 Mar 2019 14:39:06 -0400 Subject: tools: enable getter-return lint rule PR-URL: https://github.com/nodejs/node/pull/26615 Reviewed-By: Ruben Bridgewater Reviewed-By: Refael Ackermann Reviewed-By: Masashi Hirano Reviewed-By: James M Snell Reviewed-By: Yongsheng Zhang --- lib/internal/http2/compat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/internal/http2') 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]; -- cgit v1.2.3