Skip to content

Commit

Permalink
nit: else if -> if
Browse files Browse the repository at this point in the history
  • Loading branch information
bholmesdev committed Mar 21, 2023
1 parent cd33076 commit 1071319
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/astro/src/content/vite-plugin-content-imports.ts
Expand Up @@ -285,7 +285,8 @@ async function getContentConfigFromGlobal() {
if (ctx.status === 'loaded') {
resolve(ctx.config);
unsubscribe();
} else if (ctx.status === 'error') {
}
if (ctx.status === 'error') {
resolve(undefined);
unsubscribe();
}
Expand Down

0 comments on commit 1071319

Please sign in to comment.