From b39f2b71c0ea1e707955c11d62db57e5f1c9b2d5 Mon Sep 17 00:00:00 2001 From: Neil Campbell Date: Thu, 31 Aug 2023 09:19:35 +0800 Subject: [PATCH] style: fix lint warnings --- src/transaction.ts | 2 +- src/types/urlTokenBaseHTTPClient.ts | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/transaction.ts b/src/transaction.ts index d2c8cebb..3c60e332 100644 --- a/src/transaction.ts +++ b/src/transaction.ts @@ -240,7 +240,7 @@ export const sendAtomicTransactionComposer = async function (atcSend: AtomicTran decodeError: r.decodeError, returnValue: r.returnValue, rawReturnValue: r.rawReturnValue, - } as ABIReturn), + }) as ABIReturn, ), } as SendAtomicTransactionComposerResults // eslint-disable-next-line @typescript-eslint/no-explicit-any diff --git a/src/types/urlTokenBaseHTTPClient.ts b/src/types/urlTokenBaseHTTPClient.ts index f1115f03..549ab4c5 100644 --- a/src/types/urlTokenBaseHTTPClient.ts +++ b/src/types/urlTokenBaseHTTPClient.ts @@ -23,7 +23,10 @@ export interface CustomTokenHeader { } class URLTokenBaseHTTPError extends Error implements BaseHTTPClientError { - constructor(message: string, public response: BaseHTTPClientResponse) { + constructor( + message: string, + public response: BaseHTTPClientResponse, + ) { super(message) this.name = 'URLTokenBaseHTTPError' this.response = response @@ -42,7 +45,13 @@ export class URLTokenBaseHTTPClient implements BaseHTTPClient { private readonly tokenHeader: TokenHeader // eslint-disable-next-line @typescript-eslint/no-explicit-any - constructor(tokenHeader: TokenHeader, baseServer: string, port?: string | number, private defaultHeaders: Record = {}) { + constructor( + tokenHeader: TokenHeader, + baseServer: string, + port?: string | number, + // eslint-disable-next-line @typescript-eslint/no-explicit-any + private defaultHeaders: Record = {}, + ) { // Append a trailing slash so we can use relative paths. Without the trailing // slash, the last path segment will be replaced by the relative path. See // usage in `addressWithPath`.