Skip to content

Commit f0cd16c

Browse files
committed
Format code
1 parent 00c39d7 commit f0cd16c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

library/agent/hooks.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export function executeHooks<N extends HookName>(
4646

4747
for (const fn of hookSet ?? []) {
4848
try {
49-
const result = (fn as (...args: HookTypes[N]["args"]) => void | Promise<void>)(...args);
49+
const result = (
50+
fn as (...args: HookTypes[N]["args"]) => void | Promise<void>
51+
)(...args);
5052
// If it returns a promise, catch any errors but don't wait
5153
if (result instanceof Promise) {
5254
result.catch(() => {

0 commit comments

Comments
 (0)