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-03-20 05:48:15 +0300
committerFeross Aboukhadijeh <feross@feross.org>2015-03-20 05:48:15 +0300
commitc132ce47c9146738a0e7a5700aa93409b680b524 (patch)
tree2a674a9dad5ff0b9f50f600daf664ee3b14997b3 /lib/storage.js
parentc254fda44c7d498f08b73e134b7994f0394a9e29 (diff)
internal: simplify how storage opts are passed
Diffstat (limited to 'lib/storage.js')
-rw-r--r--lib/storage.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/storage.js b/lib/storage.js
index 48d88a1..0aefc64 100644
--- a/lib/storage.js
+++ b/lib/storage.js
@@ -329,7 +329,7 @@ function Storage (parsedTorrent, opts) {
var self = this
EventEmitter.call(self)
if (!debug.enabled) self.setMaxListeners(0)
- opts = opts || {}
+ if (!opts) opts = {}
self.bitfield = new BitField(parsedTorrent.pieces.length)