Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
remove check for old stream.connection since it fails typechecks
Browse files Browse the repository at this point in the history
  • Loading branch information
Tadwork committed Dec 5, 2023
1 parent 9ecc121 commit 554e415
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions commands/services/tail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,11 +59,7 @@ export const servicesTailCommand =
let writer: WritableStreamDefaultWriter<string | Uint8Array>;

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) {
Expand Down

0 comments on commit 554e415

Please sign in to comment.