diff options
author | ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> | 2022-06-26 19:46:54 +0300 |
---|---|---|
committer | ThaUnknown <6506529+ThaUnknown@users.noreply.github.com> | 2022-06-26 19:46:54 +0300 |
commit | 3a8f901a48503a5c767b6174904e2c062d403a6a (patch) | |
tree | e4960796a1b69342693f6ba2a196d5bae19f9251 | |
parent | 8b97ee8cc18b05e0d20135ea8f1651e97bb65c6f (diff) |
fix: null opts causing error
-rw-r--r-- | lib/file-stream.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/file-stream.js b/lib/file-stream.js index cb6eb63..c344913 100644 --- a/lib/file-stream.js +++ b/lib/file-stream.js @@ -13,7 +13,7 @@ const debug = debugFactory('webtorrent:file-stream') */ class FileStream extends Readable { constructor (file, opts) { - super(opts) + super(opts ?? {}) this._torrent = file._torrent |