diff --git a/.github/actions/validate-docs-links/src/index.ts b/.github/actions/validate-docs-links/src/index.ts index e03d9f54939de..56a16dd8b6de1 100644 --- a/.github/actions/validate-docs-links/src/index.ts +++ b/.github/actions/validate-docs-links/src/index.ts @@ -181,7 +181,7 @@ function validateInternalLink(errors: Errors, href: string): void { console.log(link); // check if doc page exists, key is the url path without `/docs/` // e.g. `api/example` - foundPage = documentMap.get(link); + const foundPage = documentMap.get(link); if (!foundPage) { errors.link.push(href);