Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Maddiaa0 committed Jan 19, 2025
1 parent 60d5b52 commit 3100c0d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ export class BatchConnectionSampler {
*/
removePeerAndReplace(peerId: PeerId): void {
const index = this.batch.findIndex(p => p === peerId);
if (index === -1) return;
if (index === -1) {
return;
}

const newPeer = this.connectionSampler.getPeer();
if (newPeer) {
Expand Down

0 comments on commit 3100c0d

Please sign in to comment.