From 3100c0dff9c1b47893a5f6a1e9a2dc0c6945b7a4 Mon Sep 17 00:00:00 2001 From: Maddiaa0 <47148561+Maddiaa0@users.noreply.github.com> Date: Sun, 19 Jan 2025 01:25:17 +0000 Subject: [PATCH] fmt --- .../reqresp/connection-sampler/batch_connection_sampler.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/yarn-project/p2p/src/services/reqresp/connection-sampler/batch_connection_sampler.ts b/yarn-project/p2p/src/services/reqresp/connection-sampler/batch_connection_sampler.ts index 76fc6770d60c..b0839c46ba43 100644 --- a/yarn-project/p2p/src/services/reqresp/connection-sampler/batch_connection_sampler.ts +++ b/yarn-project/p2p/src/services/reqresp/connection-sampler/batch_connection_sampler.ts @@ -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) {