Housekeeping & Make ESLint Happy

This commit is contained in:
SukkaW
2026-07-27 02:59:21 +08:00
parent 86f55a4929
commit 1b000a8cea
8 changed files with 226 additions and 168 deletions

View File

@@ -213,7 +213,7 @@ export async function fetchAssets(
return Array.fromAsync(stream);
});
if (arr.length < 1 && !allowEmpty) {
if (!allowEmpty && arr.length < 1) {
throw new ResponseError(res, url, 'empty response w/o 304');
}