From 77002f52917ec3078e0cc2071c07e759d8bb769d Mon Sep 17 00:00:00 2001 From: kontrollanten <6680299+kontrollanten@users.noreply.github.com> Date: Mon, 7 Dec 2020 14:19:44 +0100 Subject: wt-plugin: tighten sanity check --- client/src/assets/player/webtorrent/webtorrent-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'client') diff --git a/client/src/assets/player/webtorrent/webtorrent-plugin.ts b/client/src/assets/player/webtorrent/webtorrent-plugin.ts index 287358ada..9beb04d10 100644 --- a/client/src/assets/player/webtorrent/webtorrent-plugin.ts +++ b/client/src/assets/player/webtorrent/webtorrent-plugin.ts @@ -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.`) } -- cgit v1.2.3