chore: lint no-shadow
This commit is contained in:
parent
601fe763f8
commit
136ed3ab04
1 changed files with 2 additions and 2 deletions
|
@ -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];
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue