Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Nov 26, 2024
1 parent e179c37 commit db0410d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/handler/retry-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,9 @@ class RetryHandler {
}

onResponseError (controller, err) {
assert(controller)
if (!controller) {
console.error("###", new Error().stack, err)

Check failure on line 281 in lib/handler/retry-handler.js

View workflow job for this annotation

GitHub Actions / Lint

Strings must use singlequote
}

if (controller?.aborted || isDisturbed(this.opts.body)) {
this.handler.onResponseError?.(controller, err)
Expand Down

0 comments on commit db0410d

Please sign in to comment.