Browse Source

prefer length over falsy check

Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
pull/250/head
Emre Can Minnet 3 years ago committed by GitHub
parent
commit
bdeaca3062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/backend/providers/superstream/index.ts

2
src/backend/providers/superstream/index.ts

@ -129,7 +129,7 @@ const convertSubtitles = (subtitleGroup: any): MWCaption | null => {
}) })
.filter(Boolean); .filter(Boolean);
if (!subtitles.length) return null; if (subtitles.length === 0) return null;
const subFile = subtitles[0]; const subFile = subtitles[0];
return { return {
needsProxy: true, needsProxy: true,

Loading…
Cancel
Save