Skip to content

Commit 55cc025

Browse files
authored
Merge pull request webtorrent#330 from webtorrent/useless-set
Remove useless assignment
2 parents 5b9da4a + 695ade5 commit 55cc025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/server/swarm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Swarm.prototype._onAnnounceStarted = function (params, peer, id) {
7373

7474
if (params.left === 0) this.complete += 1
7575
else this.incomplete += 1
76-
peer = this.peers.set(id, {
76+
this.peers.set(id, {
7777
type: params.type,
7878
complete: params.left === 0,
7979
peerId: params.peer_id, // as hex

0 commit comments

Comments
 (0)