prefer length over falsy check

Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
Emre Can Minnet 2023-05-01 00:02:14 +03:00 committed by GitHub
parent 2338b0d652
commit bdeaca3062
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,