Skip to content

Commit

Permalink
style: fix lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
neilcampbell committed Aug 31, 2023
1 parent 80d501f commit b39f2b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions src/types/urlTokenBaseHTTPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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<string, any> = {}) {
constructor(
tokenHeader: TokenHeader,
baseServer: string,
port?: string | number,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
private defaultHeaders: Record<string, any> = {},
) {
// 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`.
Expand Down

0 comments on commit b39f2b7

Please sign in to comment.