diff --git a/generator.ts b/generator.ts index 22a461c..a54f975 100644 --- a/generator.ts +++ b/generator.ts @@ -158,7 +158,7 @@ async function ffprobe(videoFile: string): Promise> { } // Make the duration actually a number json.duration = Number(json.duration); - if (code != 0) { + if (code !== 0) { throw new Error(); } return json;