fix: adjust additional intermediate value call

This commit is contained in:
Pit Müller 2023-07-14 08:36:47 +02:00
parent 41e25b86e2
commit 11f84f51ed
No known key found for this signature in database
GPG Key ID: 0C47A4880B5171E7

View File

@ -120,7 +120,7 @@ export class CancelablePromise<T> implements Promise<T> {
}
}
this.#cancelHandlers.length = 0;
this.#reject?.(new CancelError('Request aborted'));
if (this.#reject) this.#reject(new CancelError('Request aborted'));
}
public get isCancelled(): boolean {