Skip to content

Commit

Permalink
chore: removed unneeded await
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <[email protected]>
  • Loading branch information
bholmesdev and bluwy authored Apr 27, 2023
1 parent 06f98e4 commit 1b0a8b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/src/content/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1b0a8b0

Please sign in to comment.