diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2015-03-20 05:48:15 +0300 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2015-03-20 05:48:15 +0300 |
commit | c132ce47c9146738a0e7a5700aa93409b680b524 (patch) | |
tree | 2a674a9dad5ff0b9f50f600daf664ee3b14997b3 /lib/storage.js | |
parent | c254fda44c7d498f08b73e134b7994f0394a9e29 (diff) |
internal: simplify how storage opts are passed
Diffstat (limited to 'lib/storage.js')
-rw-r--r-- | lib/storage.js | 2 |
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) |