Skip to content

Commit

Permalink
yep, these are unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
pvh committed Jul 24, 2024
1 parent 623b128 commit a7038c9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/automerge-repo/src/network/NetworkSubsystem.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,10 @@ export class NetworkSubsystem extends EventEmitter<NetworkSubsystemEvents> {
}

isReady = () => {
return this.adapters.length === 0 || this.adapters.every(a => a.isReady())
return this.adapters.every(a => a.isReady())
}

whenReady = async () => {
if (this.adapters.length == 0) {
return Promise.resolve()
}
return Promise.all(this.adapters.map(a => a.whenReady()))
}
}
Expand Down

0 comments on commit a7038c9

Please sign in to comment.