mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-04 16:47:40 +01:00
prefer length over falsy check
Co-authored-by: Jip Frijlink <jipfrijlink@gmail.com>
This commit is contained in:
parent
2338b0d652
commit
bdeaca3062
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue