diff options
Diffstat (limited to 'packages/astro/src')
-rw-r--r-- | packages/astro/src/internal/__astro_component.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/src/internal/__astro_component.ts b/packages/astro/src/internal/__astro_component.ts index 10844db93..4976fe84f 100644 --- a/packages/astro/src/internal/__astro_component.ts +++ b/packages/astro/src/internal/__astro_component.ts @@ -40,16 +40,16 @@ async function resolveRenderer(Component: any, props: any = {}, children?: strin try { const shouldUse: boolean = await __renderer.check(Component, props, children); - if(shouldUse) { + if (shouldUse) { rendererCache.set(Component, __renderer); return __renderer; } - } catch(err) { + } catch (err) { errors.push(err); } } - if(errors.length) { + if (errors.length) { // For now just throw the first error we encounter. throw errors[0]; } |