Remove useless assignment

This commit is contained in:
Feross Aboukhadijeh 2019-08-12 18:20:45 -07:00
parent 5b9da4a5e2
commit 695ade5b86

View File

@ -73,7 +73,7 @@ Swarm.prototype._onAnnounceStarted = function (params, peer, id) {
if (params.left === 0) this.complete += 1 if (params.left === 0) this.complete += 1
else this.incomplete += 1 else this.incomplete += 1
peer = this.peers.set(id, { this.peers.set(id, {
type: params.type, type: params.type,
complete: params.left === 0, complete: params.left === 0,
peerId: params.peer_id, // as hex peerId: params.peer_id, // as hex