From d8714c525308b46b95e5669284574688a2c5dc8b Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Fri, 29 Mar 2024 16:17:43 -0700 Subject: [PATCH] Fix linting --- packages/agent-base/src/index.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/packages/agent-base/src/index.ts b/packages/agent-base/src/index.ts index a55e47ee..7a6cb2c8 100644 --- a/packages/agent-base/src/index.ts +++ b/packages/agent-base/src/index.ts @@ -125,11 +125,12 @@ export abstract class Agent extends http.Agent { // In order to properly update the socket pool, we need to call `getName()` on // the core `https.Agent` if it is a secureEndpoint. private getName({ secureEndpoint, ...options }: AgentConnectOpts) { - return secureEndpoint - ? // @ts-expect-error `getName()` isn't defined in `@types/node` - HttpsAgent.prototype.getName.call(this, options) - : // @ts-expect-error `getName()` isn't defined in `@types/node` - super.getName(options); + if (secureEndpoint) { + // @ts-expect-error `getName()` isn't defined in `@types/node` + return HttpsAgent.prototype.getName.call(this, options); + } + // @ts-expect-error `getName()` isn't defined in `@types/node` + return super.getName(options); } createSocket(