Skip to content

Commit

Permalink
Merge pull request #285 from marian2js/patch-1
Browse files Browse the repository at this point in the history
chore: remove unnecessarily disabled eslint rule
  • Loading branch information
rygine authored Nov 28, 2023
2 parents 59d5c5b + 270bad5 commit 6939c34
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ApiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,13 @@ const isAbortError = (err?: Error): boolean => {
return false
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const isAuthError = (err?: GrpcError | Error): boolean => {
if (err && 'code' in err && err.code === ERR_CODE_UNAUTHENTICATED) {
return true
}
return false
}

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const isNotAuthError = (err?: Error): boolean => !isAuthError(err)

export interface ApiClient {
Expand Down

0 comments on commit 6939c34

Please sign in to comment.