fix(hooks): resolve type/lint errors from CI check failure

Arrow function passed to registerInternalHook was implicitly returning
the number from Array.push(), which is not assignable to void | Promise<void>.
Use block body to discard the return value.
This commit is contained in:
Eric Lytle 2026-02-20 13:46:36 +00:00 committed by Peter Steinberger
parent e0b8b80067
commit 7ad6a04058
1 changed files with 3 additions and 1 deletions

View File

@ -359,7 +359,9 @@ describe("message hooks", () => {
it("should preserve sessionKey across event lifecycle", async () => {
const events: InternalHookEvent[] = [];
registerInternalHook("message", (e) => events.push(e));
registerInternalHook("message", (e) => {
events.push(e);
});
await triggerInternalHook(
createInternalHookEvent("message", "received", "agent:main:telegram:abc", {