diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-12-04 06:53:50 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-12-04 06:53:50 +0300 |
commit | 87ff0039b99f44f290838187164756eaed48c522 (patch) | |
tree | c3d64d4c1ccad4d5d3e1992f23cc60b20dffaad5 /index.js | |
parent | 1bd5fa676a8480cdbe0d11ed5661a49a63288fb9 (diff) |
code style
Diffstat (limited to 'index.js')
-rw-r--r-- | index.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |