Skip to content

Commit

Permalink
Fixed typo in assert (#4122).
Browse files Browse the repository at this point in the history
  • Loading branch information
ricmoo committed Apr 25, 2024
1 parent a12a739 commit 5817972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src.ts/utils/geturl-browser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ declare global {
export function createGetUrl(options?: Record<string, any>): FetchGetUrlFunc {

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

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

Expand Down

0 comments on commit 5817972

Please sign in to comment.