From 87ff0039b99f44f290838187164756eaed48c522 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Thu, 3 Dec 2015 19:53:50 -0800 Subject: code style --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.js') 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) -- cgit v1.2.3