chore: removed unneeded await

Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
This commit is contained in:
Ben Holmes 2023-04-27 11:34:51 -04:00 committed by GitHub
parent 06f98e43a4
commit 1b0a8b00c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,7 +88,7 @@ export function createGetEntryBySlug({
getRenderEntryImport: GetEntryImport;
}) {
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;
const entry = await entryImport();