mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-31 02:21:36 +00:00
Merge pull request #330 from webtorrent/useless-set
Remove useless assignment
This commit is contained in:
commit
55cc025b51
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user