Skip to content

Commit f258bd5

Browse files
committed
fixup
1 parent e179c37 commit f258bd5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/handler/retry-handler.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,7 @@ class RetryHandler {
277277
}
278278

279279
onResponseError (controller, err) {
280-
assert(controller)
281-
282-
if (controller?.aborted || isDisturbed(this.opts.body)) {
280+
if (!controller || controller.aborted || isDisturbed(this.opts.body)) {
283281
this.handler.onResponseError?.(controller, err)
284282
return
285283
}

0 commit comments

Comments
 (0)