chore: removed unneeded await
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
This commit is contained in:
parent
06f98e43a4
commit
1b0a8b00c2
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ export function createGetEntryBySlug({
|
||||||
getRenderEntryImport: GetEntryImport;
|
getRenderEntryImport: GetEntryImport;
|
||||||
}) {
|
}) {
|
||||||
return async function getEntryBySlug(collection: string, slug: string) {
|
return async function getEntryBySlug(collection: string, slug: string) {
|
||||||
const entryImport = await getEntryImport(collection, slug);
|
const entryImport = getEntryImport(collection, slug);
|
||||||
if (typeof entryImport !== 'function') return undefined;
|
if (typeof entryImport !== 'function') return undefined;
|
||||||
|
|
||||||
const entry = await entryImport();
|
const entry = await entryImport();
|
||||||
|
|
Loading…
Reference in a new issue