refactor: remove unused variables and imports, and internalize module-specific functions and interfaces.

This commit is contained in:
kuekhaoyang
2025-11-29 12:55:46 +08:00
parent cad70dfb92
commit 76ca595a98
6 changed files with 4 additions and 12 deletions
+1 -2
View File
@@ -1,4 +1,3 @@
import { NextRequest } from 'next/server';
export async function processM3u8Content(
content: string,
@@ -19,7 +18,7 @@ export async function processM3u8Content(
const absoluteUrl = new URL(line.trim(), base).toString();
// Wrap in proxy
return `${origin}/api/proxy?url=${encodeURIComponent(absoluteUrl)}`;
} catch (e) {
} catch {
return line;
}
});