Skip to content

Commit 5817972

Browse files
committed
Fixed typo in assert (#4122).
1 parent a12a739 commit 5817972

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src.ts/utils/geturl-browser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ declare global {
3030
export function createGetUrl(options?: Record<string, any>): FetchGetUrlFunc {
3131

3232
async function getUrl(req: FetchRequest, _signal?: FetchCancelSignal): Promise<GetUrlResponse> {
33-
assert(signal == null || !signal.cancelled, "request cancelled before sending", "CANCELLED");
33+
assert(_signal == null || !_signal.cancelled, "request cancelled before sending", "CANCELLED");
3434

3535
const protocol = req.url.split(":")[0].toLowerCase();
3636

0 commit comments

Comments
 (0)