From 26aa585909106adcf7dfc4e076357192e30c0528 Mon Sep 17 00:00:00 2001 From: sansth1010 Date: Mon, 3 Jun 2024 19:02:01 -0500 Subject: [PATCH] fix lint issues --- src/model.ts | 2 +- src/paging-stream.ts | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/model.ts b/src/model.ts index 858517a..32a287e 100644 --- a/src/model.ts +++ b/src/model.ts @@ -137,7 +137,7 @@ export class HubApiModel { stream.pipe(destination, { end: false }); stream.on('end', resolve); stream.on('error', (err) => { - destination.emit('error', err) + destination.emit('error', err); }); }); } diff --git a/src/paging-stream.ts b/src/paging-stream.ts index 7d93678..1cafec8 100644 --- a/src/paging-stream.ts +++ b/src/paging-stream.ts @@ -34,9 +34,7 @@ export class PagingStream extends Readable { async _read() { try { - let response: any; - - response = await this._loadPage(this._nextPageParams); + const response = await this._loadPage(this._nextPageParams); this._currPage++; this._nextPageParams = this._getNextPageParams(response);