Signed-off-by: Sam Therapy <sam@samtherapy.net>
This commit is contained in:
Sam Therapy 2022-06-19 18:10:36 +02:00
parent f178bb67bb
commit 31d9cc44b7
Signed by: sam
GPG Key ID: 4D8B07C18F31ACBD
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ async function ffprobe(videoFile: string): Promise<Record<string, unknown>> {
}
// Make the duration actually a number
json.duration = Number(json.duration);
if (code != 0) {
if (code !== 0) {
throw new Error();
}
return json;