[ci] yarn format

This commit is contained in:
natemoo-re 2021-05-28 22:20:42 +00:00 committed by GitHub Actions
parent 3df41d2308
commit 94a053c99c
3 changed files with 5 additions and 5 deletions

View file

@ -78,7 +78,7 @@ export const __astro_component = (Component: any, componentProps: AstroComponent
if (!renderer) {
// If the user only specifies a single renderer, but the check failed
// for some reason... just default to their preferred renderer.
renderer = (__rendererSources.length === 2) ? __renderers[1] : null;
renderer = __rendererSources.length === 2 ? __renderers[1] : null;
if (!renderer) {
const name = typeof Component === 'function' ? Component.displayName ?? Component.name : `{ ${Object.keys(Component).join(', ')} }`;

View file

@ -4,8 +4,8 @@ import StaticHtml from './static-html.js';
function check(Component, props, children) {
try {
const { html } = renderToStaticMarkup(Component, props, children)
return Boolean(html)
const { html } = renderToStaticMarkup(Component, props, children);
return Boolean(html);
} catch (e) {}
return false;
}

View file

@ -4,8 +4,8 @@ import StaticHtml from './static-html.js';
function check(Component, props, children) {
try {
const { html } = renderToStaticMarkup(Component, props, children)
return Boolean(html)
const { html } = renderToStaticMarkup(Component, props, children);
return Boolean(html);
} catch (e) {}
return false;
}