wt-plugin: tighten sanity check
This commit is contained in:
parent
a325db1776
commit
77002f5291
|
@ -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.`)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue