We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00c39d7 commit f0cd16cCopy full SHA for f0cd16c
1 file changed
library/agent/hooks.ts
@@ -46,7 +46,9 @@ export function executeHooks<N extends HookName>(
46
47
for (const fn of hookSet ?? []) {
48
try {
49
- const result = (fn as (...args: HookTypes[N]["args"]) => void | Promise<void>)(...args);
+ const result = (
50
+ fn as (...args: HookTypes[N]["args"]) => void | Promise<void>
51
+ )(...args);
52
// If it returns a promise, catch any errors but don't wait
53
if (result instanceof Promise) {
54
result.catch(() => {
0 commit comments