Browse Source

chore: remove unnecessary TypeScript error suppression (#1571)

Yordis Prieto 6 months ago
parent
commit
c9187a9f3a
1 changed files with 0 additions and 2 deletions
  1. 0 2
      packages/opencode/src/plugin/index.ts

+ 0 - 2
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