]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
wt-plugin: tighten sanity check
authorkontrollanten <6680299+kontrollanten@users.noreply.github.com>
Mon, 7 Dec 2020 13:19:44 +0000 (14:19 +0100)
committerChocobozzz <chocobozzz@cpy.re>
Mon, 7 Dec 2020 15:52:35 +0000 (16:52 +0100)
client/src/assets/player/webtorrent/webtorrent-plugin.ts

index 287358ada93e5db5cf3f7c233c17791c24fba5e3..9beb04d108bf4a20ca9bc0308e48ae43a49ba92f 100644 (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.`)
     }