From bdeaca306238217252d0b35a4bdba0caf263ae53 Mon Sep 17 00:00:00 2001 From: Emre Can Minnet Date: Mon, 1 May 2023 00:02:14 +0300 Subject: [PATCH] prefer length over falsy check Co-authored-by: Jip Frijlink --- src/backend/providers/superstream/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/providers/superstream/index.ts b/src/backend/providers/superstream/index.ts index 435c36bb..585d8d8a 100644 --- a/src/backend/providers/superstream/index.ts +++ b/src/backend/providers/superstream/index.ts @@ -129,7 +129,7 @@ const convertSubtitles = (subtitleGroup: any): MWCaption | null => { }) .filter(Boolean); - if (!subtitles.length) return null; + if (subtitles.length === 0) return null; const subFile = subtitles[0]; return { needsProxy: true,