From 7121d254f69fe9cf781cb1b3433903cc9f8e83ba Mon Sep 17 00:00:00 2001 From: AnidlSupport Date: Sun, 24 Dec 2023 11:19:27 -0800 Subject: [PATCH] Linting Fixes --- crunchy.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crunchy.ts b/crunchy.ts index e04bff8..bddf846 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -1285,23 +1285,23 @@ export default class Crunchy implements ServiceClass { return { ...item, resolutionText: `${item.quality.width}x${item.quality.height} (${Math.round(item.bandwidth/1024)}KiB/s)` - } + }; }); const audios = selectedList.audio.map(item => { return { ...item, resolutionText: `${Math.round(item.bandwidth/1000)}kB/s` - } - }) + }; + }); videos.sort((a, b) => { - return a.quality.width - b.quality.width + return a.quality.width - b.quality.width; }); audios.sort((a, b) => { - return a.bandwidth - b.bandwidth + return a.bandwidth - b.bandwidth; }); let chosenVideoQuality = options.q === 0 ? videos.length : options.q;