From a7038c9c4d1504cf7a43b45f2f5ae841e1d17e53 Mon Sep 17 00:00:00 2001 From: Peter van Hardenberg Date: Wed, 24 Jul 2024 15:51:46 -0700 Subject: [PATCH] yep, these are unnecessary --- packages/automerge-repo/src/network/NetworkSubsystem.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/automerge-repo/src/network/NetworkSubsystem.ts b/packages/automerge-repo/src/network/NetworkSubsystem.ts index d03f3a835..692f1d0be 100644 --- a/packages/automerge-repo/src/network/NetworkSubsystem.ts +++ b/packages/automerge-repo/src/network/NetworkSubsystem.ts @@ -159,13 +159,10 @@ export class NetworkSubsystem extends EventEmitter { } 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())) } }