style: run oxfmt

This commit is contained in:
Peter Steinberger
2026-01-17 07:59:53 +00:00
parent 5986175268
commit 7cebe7a506
34 changed files with 127 additions and 148 deletions

View File

@@ -79,9 +79,7 @@ export async function loadInternalHooks(
// Register for all events listed in metadata
const events = entry.clawdbot?.events ?? [];
if (events.length === 0) {
console.warn(
`Hook warning: Hook '${entry.hook.name}' has no events defined in metadata`,
);
console.warn(`Hook warning: Hook '${entry.hook.name}' has no events defined in metadata`);
continue;
}
@@ -126,9 +124,7 @@ export async function loadInternalHooks(
const handler = mod[exportName];
if (typeof handler !== "function") {
console.error(
`Hook error: Handler '${exportName}' from ${modulePath} is not a function`,
);
console.error(`Hook error: Handler '${exportName}' from ${modulePath} is not a function`);
continue;
}