Skip to content

The open source coding agent.

TypeScript

chore: remove unnecessary TypeScript error suppression (#1571)

Yordis Prietoc9187a9f3ab8
diff --git a/packages/opencode/src/plugin/index.ts b/packages/opencode/src/plugin/index.ts
index 59830aa545f..4b38cb3bb6e 100644
--- a/packages/opencode/src/plugin/index.ts
+++ b/packages/opencode/src/plugin/index.ts
@@ -63,10 +63,8 @@ export namespace Plugin {
if (!fn) return output
const path = fn.split(".")
for (const hook of await state().then((x) => x.hooks)) {
- // @ts-expect-error
const fn = pathOr(hook, path, undefined)
if (!fn) continue
- // @ts-expect-error
await fn(input, output)
}
return output