From 062c38ccba947eb30df499c12c5e97780b8181d6 Mon Sep 17 00:00:00 2001 From: rafapaezbas Date: Fri, 24 Jan 2025 11:25:32 +0100 Subject: [PATCH] use noop --- subsystems/sidecar/lib/replicator.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/subsystems/sidecar/lib/replicator.js b/subsystems/sidecar/lib/replicator.js index 2b0951208..839f023ed 100644 --- a/subsystems/sidecar/lib/replicator.js +++ b/subsystems/sidecar/lib/replicator.js @@ -63,7 +63,7 @@ module.exports = class Replicator extends EventEmitter { } async _join (swarm, { announceSeeds, server, client }) { - let done = () => {} + let done = noop try { await this.drive.ready() if (this.drive.core.length === 0) done = this.drive.findingPeers() @@ -178,3 +178,6 @@ module.exports = class Replicator extends EventEmitter { return keyPair } } + +function noop () { +}