Skip to content

Commit 3ffe6d1

Browse files
committed
add return type to isTransientError function
1 parent 18f1a6a commit 3ffe6d1

File tree

1 file changed

+1
-1
lines changed
  • packages/service-error-classification/src

1 file changed

+1
-1
lines changed

packages/service-error-classification/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const isThrottlingError = (error: SdkError) =>
3131
* cause where the NodeHttpHandler does not decorate the Error with
3232
* the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition.
3333
*/
34-
export const isTransientError = (error: SdkError, depth = 0) =>
34+
export const isTransientError = (error: SdkError, depth = 0): boolean =>
3535
isClockSkewCorrectedError(error) ||
3636
TRANSIENT_ERROR_CODES.includes(error.name) ||
3737
NODEJS_TIMEOUT_ERROR_CODES.includes((error as { code?: string })?.code || "") ||

0 commit comments

Comments
 (0)