Skip to content

Commit 8084cac

Browse files
chore: remove unused object from httpClient
1 parent 9a6b0f2 commit 8084cac

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/common/http-client.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,11 @@ export class HttpClient implements Server.IHttpClient {
1515
// We receive multiple response packets every ms but we don't need to be very aggressive here.
1616
private static STUCK_RESPONSE_CHECK_INTERVAL = 10000;
1717

18-
private defaultUserAgent: string;
19-
private cleanupData: ICleanupRequestData[];
18+
private defaultUserAgent: string;
2019

2120
constructor(private $logger: ILogger,
2221
private $proxyService: IProxyService,
2322
private $staticConfig: Config.IStaticConfig) {
24-
this.cleanupData = [];
2523
}
2624

2725
public async httpRequest(options: any, proxySettings?: IProxySettings): Promise<Server.IResponse> {
@@ -101,7 +99,6 @@ export class HttpClient implements Server.IHttpClient {
10199
const result = new Promise<Server.IResponse>((resolve, reject) => {
102100
let timerId: NodeJS.Timer;
103101
const cleanupRequestData: ICleanupRequestData = Object.create({ timers: [] });
104-
this.cleanupData.push(cleanupRequestData);
105102

106103
const promiseActions: IPromiseActions<Server.IResponse> = {
107104
resolve,

0 commit comments

Comments
 (0)