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 () { +}