wt-plugin: tighten sanity check

pull/3421/head
kontrollanten 2020-12-07 14:19:44 +01:00 committed by Chocobozzz
parent a325db1776
commit 77002f5291
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class WebTorrentPlugin extends Plugin {
: this.pickAverageVideoFile()
}
if (videoFile === undefined) {
if (!!videoFile) {
throw Error(`Can't update video file since videoFile is undefined.`)
}