Fixes linter issues

This commit is contained in:
freearhey
2025-07-29 04:31:55 +03:00
parent 09b365ca73
commit 307cfe4b99
5 changed files with 7 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ import type { DataLoaderData } from '../../types/dataLoader'
import { DATA_DIR, STREAMS_DIR } from '../../constants'
import { isURI } from '../../utils'
let processedIssues = new Collection()
const processedIssues = new Collection()
async function main() {
const logger = new Logger({ level: -999 })
@@ -55,7 +55,7 @@ async function main() {
logger.info('saving...')
const groupedStreams = streams.groupBy((stream: Stream) => stream.getFilepath())
for (let filepath of groupedStreams.keys()) {
for (const filepath of groupedStreams.keys()) {
let streams = groupedStreams.get(filepath) || []
streams = streams.filter((stream: Stream) => stream.removed === false)
@@ -114,7 +114,7 @@ async function editStreams({
if (data.missing('streamUrl')) return
let stream: Stream = streams.first(
const stream: Stream = streams.first(
(_stream: Stream) => _stream.url === data.getString('streamUrl')
)
if (!stream) return