Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/webtorrent/webtorrent.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeross Aboukhadijeh <feross@feross.org>2015-12-04 06:53:50 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-12-04 06:53:50 +0300
commit87ff0039b99f44f290838187164756eaed48c522 (patch)
treec3d64d4c1ccad4d5d3e1992f23cc60b20dffaad5 /index.js
parent1bd5fa676a8480cdbe0d11ed5661a49a63288fb9 (diff)
code style
Diffstat (limited to 'index.js')
-rw-r--r--index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.js b/index.js
index dbf91f0..9a0c46a 100644
--- a/index.js
+++ b/index.js
@@ -154,7 +154,7 @@ WebTorrent.prototype.download = function (torrentId, opts, ontorrent) {
if (typeof opts === 'function') return self.add(torrentId, null, opts)
debug('add')
if (!opts) opts = {}
- else opts = extend({}, opts)
+ else opts = extend(opts)
opts.client = self
@@ -202,7 +202,7 @@ WebTorrent.prototype.seed = function (input, opts, onseed) {
if (typeof opts === 'function') return self.seed(input, null, opts)
debug('seed')
if (!opts) opts = {}
- else opts = extend({}, opts)
+ else opts = extend(opts)
// When seeding from filesystem, initialize store from that path (avoids a copy)
if (typeof input === 'string') opts.path = path.dirname(input)