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 f258bd5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/handler/retry-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,7 @@ class RetryHandler {
}

onResponseError (controller, err) {
assert(controller)

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

0 comments on commit f258bd5

Please sign in to comment.