fix: remove 8 more unnecessary as any casts in opencode core (#22877)

This commit is contained in:
Kit Langton
2026-04-16 15:27:53 -04:00
committed by GitHub
parent 219b473e66
commit 2fe9d94470
8 changed files with 16 additions and 13 deletions

View File

@@ -531,7 +531,7 @@ export const layer = Layer.effect(
Object.values(s.clients),
(client) =>
Effect.gen(function* () {
const pid = (client.transport as any)?.pid
const pid = client.transport instanceof StdioClientTransport ? client.transport.pid : null
if (typeof pid === "number") {
const pids = yield* descendants(pid)
for (const dpid of pids) {