From e776c8247d8c74e35cd3a0a4c93c371897161cdf Mon Sep 17 00:00:00 2001 From: Deven Perez Date: Fri, 22 Aug 2025 01:04:09 -0400 Subject: [PATCH] ESLint fixes --- src/app/iptv/sdlive-playlist.m3u8/route.ts | 6 +++--- src/utils/debugLog.ts | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/iptv/sdlive-playlist.m3u8/route.ts b/src/app/iptv/sdlive-playlist.m3u8/route.ts index bb240c2..4389931 100644 --- a/src/app/iptv/sdlive-playlist.m3u8/route.ts +++ b/src/app/iptv/sdlive-playlist.m3u8/route.ts @@ -20,11 +20,11 @@ export async function GET(request: NextRequest) { const lines = playlist.split("\n") debugLog(lines) - let newLines = [lines[0]] + const newLines = [lines[0]] for (let i = 1; i + 1 < lines.length; i += 2) { - let info = lines[i] - let streamURL = lines[i + 1] + const info = lines[i] + const streamURL = lines[i + 1] debugLog(`Attempting to parse: info: ${info}. streamURL: ${streamURL}`) diff --git a/src/utils/debugLog.ts b/src/utils/debugLog.ts index f93cad9..047397c 100644 --- a/src/utils/debugLog.ts +++ b/src/utils/debugLog.ts @@ -1,3 +1,4 @@ +// eslint-disable-next-line @typescript-eslint/no-explicit-any export const debugLog = (...data: any[]): void => { if (process.env.LOG_LEVEL === "DEBUG") { console.log(...data)