Skip to content

Commit

Permalink
use noop
Browse files Browse the repository at this point in the history
  • Loading branch information
rafapaezbas committed Jan 24, 2025
1 parent 40ea05f commit 062c38c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subsystems/sidecar/lib/replicator.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -178,3 +178,6 @@ module.exports = class Replicator extends EventEmitter {
return keyPair
}
}

function noop () {
}

0 comments on commit 062c38c

Please sign in to comment.