From 06bf8598c77b4357718318e5acfa639ffe72c4ad Mon Sep 17 00:00:00 2001 From: Zoltan Kochan Date: Thu, 18 Jan 2024 22:32:56 +0100 Subject: [PATCH] style: update --- network/agent/agent.spec.ts | 2 +- network/proxy-agent/proxy-agent.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/network/agent/agent.spec.ts b/network/agent/agent.spec.ts index 8010a3f..4bcf1a9 100644 --- a/network/agent/agent.spec.ts +++ b/network/agent/agent.spec.ts @@ -7,7 +7,7 @@ jest.mock('agentkeepalive', () => { }) jest.mock('https-proxy-agent', () => mockHttpAgent('https-proxy')) -function mockHttpAgent(type: string) { +function mockHttpAgent (type: string) { return function Agent(opts: any) { // eslint-disable-line @typescript-eslint/no-explicit-any return { diff --git a/network/proxy-agent/proxy-agent.ts b/network/proxy-agent/proxy-agent.ts index 7cbca56..40a044f 100644 --- a/network/proxy-agent/proxy-agent.ts +++ b/network/proxy-agent/proxy-agent.ts @@ -142,7 +142,7 @@ function getProxy ( return undefined } -function getAuth (user: { username?: string; password?: string }) { +function getAuth (user: { username?: string, password?: string }) { if (!user.username) { return undefined }