Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
suhaotian committed Aug 3, 2024
1 parent f650ece commit a8885f3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/xior.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,17 +193,15 @@ export class Xior {
}, timeout);
signals.push(controller.signal);
}
if (reqSignal) {
signals.push(reqSignal);
}
if (reqSignal) signals.push(reqSignal);
signal = signals[0];
if (signals.length > 1) {
signal = anySignal(signals, () => {
clearTimeout(timer);
});
}

let finalURL = _url || url || '';
let finalURL = _url || url;
if (requestConfig.baseURL && !isAbsoluteURL(finalURL)) {
finalURL = joinPath(requestConfig.baseURL, finalURL);
}
Expand Down

0 comments on commit a8885f3

Please sign in to comment.