mirror of
https://github.com/SukkaW/Surge.git
synced 2026-09-12 18:44:36 +08:00
Housekeeping & Make ESLint Happy
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user