style: lint

This commit is contained in:
手瓜一十雪
2024-09-17 13:15:12 +08:00
parent 406deac592
commit 1a67a001c5
8 changed files with 23 additions and 23 deletions

View File

@@ -144,7 +144,7 @@ async function tryDownload(options: string | HttpDownloadOptions, useReferer: bo
}
if (useReferer && !headers['Referer']) {
headers['Referer'] = url;
};
}
const fetchRes = await fetch(url, { headers }).catch((err) => {
if (err.cause) {
throw err.cause;