Merge pull request #330 from webtorrent/useless-set

Remove useless assignment
This commit is contained in:
Feross Aboukhadijeh 2019-08-14 15:23:12 -07:00 committed by GitHub
commit 55cc025b51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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