We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3034c2f commit c079b93Copy full SHA for c079b93
source/core/index.ts
@@ -490,7 +490,7 @@ export default class Request extends Duplex implements RequestEvents<Request> {
490
this._request.end((error?: Error | null) => { // eslint-disable-line @typescript-eslint/ban-types
491
// The request has been destroyed before `_final` finished.
492
// See https://github.com/nodejs/node/issues/39356
493
- if ((this._request as any)._writableState?.errored) {
+ if ((this._request as any)?._writableState?.errored) {
494
return;
495
}
496
0 commit comments