Skip to content

Commit

Permalink
Merge branch 'main' into bwcDvorak-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
rygine authored Nov 29, 2023
2 parents ca5b267 + 6939c34 commit 4ab7cc8
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 4ab7cc8

Please sign in to comment.