Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Aaron Powell
2026-02-10 14:31:07 +11:00
committed by GitHub
parent 4ddc77bb36
commit 6210128ab1
4 changed files with 26 additions and 5 deletions

View File

@@ -263,7 +263,7 @@ function validateCollectionItems(items) {
// Validate hook-specific frontmatter
if (item.kind === "hook") {
const hookValidation = validateHookFile(filePath, i + 1);
const hookValidation = validateHookFile(filePath);
if (hookValidation) {
return hookValidation;
}