Chore: Make ESLint Happy

This commit is contained in:
SukkaW 2025-06-10 20:00:19 +08:00
parent 5391d85c90
commit 1e5a0a8f48
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@ export async function fetchAssets(url: string, fallbackUrls: null | undefined |
const createFetchFallbackPromise = async (url: string, index: number) => { const createFetchFallbackPromise = async (url: string, index: number) => {
if (index >= 0) { if (index >= 0) {
// Most assets can be downloaded within 250ms. To avoid wasting bandwidth, we will wait for 500ms before downloading from the fallback URL. // Most assets can be downloaded within 250ms. To avoid wasting bandwidth, we will wait for 500ms before downloading from the fallback URL.
try { try {
await waitWithAbort(50 + (index + 1) * 150, controller.signal); await waitWithAbort(50 + (index + 1) * 150, controller.signal);
} catch { } catch {

View File

@ -21,6 +21,7 @@ export function processLine(line: string): string | null {
if (line_0 === 35 /** # */) { if (line_0 === 35 /** # */) {
if (trimmed.charCodeAt(1) !== 35 /** # */) { if (trimmed.charCodeAt(1) !== 35 /** # */) {
// # Comment // # Comment
// AdGuard Rule like #@.not_ad
return null; return null;
} }
if (trimmed.charCodeAt(2) === 35 /** # */ && trimmed.charCodeAt(3) === 35 /** # */) { if (trimmed.charCodeAt(2) === 35 /** # */ && trimmed.charCodeAt(3) === 35 /** # */) {