From 136ed3ab043f4db4b9daa81921022da595b363cf Mon Sep 17 00:00:00 2001 From: bholmesdev Date: Wed, 26 Apr 2023 15:19:12 -0400 Subject: [PATCH] chore: lint no-shadow --- packages/astro/src/content/template/virtual-mod.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro/src/content/template/virtual-mod.mjs b/packages/astro/src/content/template/virtual-mod.mjs index 11097777c..e68e5bc48 100644 --- a/packages/astro/src/content/template/virtual-mod.mjs +++ b/packages/astro/src/content/template/virtual-mod.mjs @@ -28,13 +28,13 @@ const collectionToEntryMap = createCollectionToGlobResultMap({ contentDir, }); -function createGlobLookup(entryGlob) { +function createGlobLookup(glob) { return async (collection, lookupId) => { const { default: lookupMap } = await import('@@LOOKUP_MAP_PATH@@'); const filePath = lookupMap[collection]?.[lookupId]; if (!filePath) return undefined; - return entryGlob[collection][filePath]; + return glob[collection][filePath]; }; }