From a2162a9de91e4f2dbcbe9259bd0bb90abf1074de Mon Sep 17 00:00:00 2001 From: Parth Verma Date: Mon, 19 Aug 2024 15:50:42 -0700 Subject: [PATCH] Fixed lint errors --- lib/http2/request.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/http2/request.js b/lib/http2/request.js index 9dc91fec4..1cec32f3d 100644 --- a/lib/http2/request.js +++ b/lib/http2/request.js @@ -183,15 +183,15 @@ class Http2Request extends EventEmitter { ) // The client was created in an unreferenced state and is referenced when a stream is created - this._client.ref(); + this._client.ref() this.stream = this._client.request(this.requestHeaders, {endStream}) const unreferenceFn = () => { - this._client.unref(); - this.stream.off('close', unreferenceFn); + this._client.unref() + this.stream.off('close', unreferenceFn) } - this.stream.on('close', unreferenceFn); + this.stream.on('close', unreferenceFn) this.registerListeners()