From 38fb984d51a2b45e9c4ea04616944397686d78ee Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Fri, 29 May 2015 22:31:53 -0700 Subject: standard --- lib/torrent.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/torrent.js b/lib/torrent.js index 97ee244..e25fd63 100644 --- a/lib/torrent.js +++ b/lib/torrent.js @@ -372,9 +372,8 @@ Torrent.prototype.destroy = function (cb) { Torrent.prototype.addPeer = function (peer) { var self = this // TODO: extract IP address from peer object and check blocklist - if (typeof peer === 'string' - && self.client.blocked - && self.client.blocked.contains(addrToIPPort(peer)[0])) { + if (typeof peer === 'string' && self.client.blocked && + self.client.blocked.contains(addrToIPPort(peer)[0])) { self.numBlockedPeers += 1 self.emit('blockedPeer', peer) return false -- cgit v1.2.3