Skip to content

Commit 11f84f5

Browse files
fix: adjust additional intermediate value call
1 parent 41e25b8 commit 11f84f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/core/CancelablePromise.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class CancelablePromise<T> implements Promise<T> {
120120
}
121121
}
122122
this.#cancelHandlers.length = 0;
123-
this.#reject?.(new CancelError('Request aborted'));
123+
if (this.#reject) this.#reject(new CancelError('Request aborted'));
124124
}
125125

126126
public get isCancelled(): boolean {

0 commit comments

Comments
 (0)