mirror of
https://github.com/webtorrent/bittorrent-tracker.git
synced 2025-01-18 12:11:36 +00:00
Remove useless assignment
This commit is contained in:
parent
5b9da4a5e2
commit
695ade5b86
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user