From 695ade5b86400745d2feb50ff16ad43b8a3c7ff6 Mon Sep 17 00:00:00 2001 From: Feross Aboukhadijeh Date: Mon, 12 Aug 2019 18:20:45 -0700 Subject: [PATCH] Remove useless assignment --- lib/server/swarm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server/swarm.js b/lib/server/swarm.js index 2c6f49a..5c914c9 100644 --- a/lib/server/swarm.js +++ b/lib/server/swarm.js @@ -73,7 +73,7 @@ Swarm.prototype._onAnnounceStarted = function (params, peer, id) { if (params.left === 0) this.complete += 1 else this.incomplete += 1 - peer = this.peers.set(id, { + this.peers.set(id, { type: params.type, complete: params.left === 0, peerId: params.peer_id, // as hex