浏览代码

Chore: Make ESLint Happy

SukkaW 9 月之前
父节点
当前提交
1e5a0a8f48
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1 1
      Build/lib/fetch-assets.ts
  2. 1 0
      Build/lib/process-line.ts

+ 1 - 1
Build/lib/fetch-assets.ts

@@ -18,7 +18,7 @@ export async function fetchAssets(url: string, fallbackUrls: null | undefined |
 
   const createFetchFallbackPromise = async (url: string, index: number) => {
     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 {
         await waitWithAbort(50 + (index + 1) * 150, controller.signal);
       } catch {

+ 1 - 0
Build/lib/process-line.ts

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