Skip to content

Commit 695ade5

Browse files
committed
Remove useless assignment
1 parent 5b9da4a commit 695ade5

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)