Skip to content

Commit

Permalink
Update lib/core/request.js
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag authored Jun 24, 2024
1 parent b14a4e9 commit b38e964
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions lib/core/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,6 @@ class Request {
}
this.aborted = true

if (!this.abort) {
// Make sure to always call onConnect even on errors to avoid
// a common user mistake of assuming that onConnect is always
// called before any other hook.
this[kHandler].onConnect(noop)
}

Check failure on line 300 in lib/core/request.js

View workflow job for this annotation

GitHub Actions / Lint

More than 1 blank line not allowed
return this[kHandler].onError(error)
}
Expand Down

0 comments on commit b38e964

Please sign in to comment.