chore: lint no-shadow

This commit is contained in:
bholmesdev 2023-04-26 15:19:12 -04:00
parent 601fe763f8
commit 136ed3ab04

View file

@ -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];
};
}