From 554e415c4f66a466fb48dc6accc452a832ad3491 Mon Sep 17 00:00:00 2001 From: Tzvi Friedman Date: Tue, 5 Dec 2023 14:05:05 -0500 Subject: [PATCH] remove check for old `stream.connection` since it fails typechecks --- commands/services/tail.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/commands/services/tail.ts b/commands/services/tail.ts index 7fa28ed..f1859b8 100644 --- a/commands/services/tail.ts +++ b/commands/services/tail.ts @@ -59,11 +59,7 @@ export const servicesTailCommand = let writer: WritableStreamDefaultWriter; try { - if (stream.connection) { - conn = await stream.connection; - } else { - conn = await stream.opened; - } + conn = await stream.opened; reader = await conn.readable.getReader(); writer = await conn.writable.getWriter(); } catch (err) {