clean the code a bit

This commit is contained in:
David Dias 2015-07-09 15:45:13 -07:00
parent 14d11de201
commit f08d407bf9

View File

@ -63,10 +63,8 @@ function Swarm () {
// open stream account for connection reuse
self.openStream = function (peer, protocol, cb) {
// If no connection open yet, open it
if (!self.connections[peer.id.toB58String()]) {
// Establish a socket with one of the addresses
var socket
async.eachSeries(peer.multiaddrs, function (multiaddr, next) {