diff options
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -154,9 +154,6 @@ WebTorrent.prototype.download = function (torrentId, opts, ontorrent) { opts.client = self opts.storage = opts.storage || self.storage - if (!opts.storageOpts) opts.storageOpts = {} - if (opts.tmp) opts.storageOpts.tmp = opts.tmp - var torrent = new Torrent(torrentId, opts) self.torrents.push(torrent) @@ -200,8 +197,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) { opts = {} } if (!opts) opts = {} - if (!opts.storageOpts) opts.storageOpts = {} - opts.storageOpts.noVerify = true + opts.noVerify = true createTorrent.parseInput(input, opts, function (err, files) { if (err) return self.emit('error', err) |