[ci] format

This commit is contained in:
matthewp 2022-08-15 17:12:41 +00:00 committed by fredkbot
parent b55f76c1ca
commit 5f092230f6
2 changed files with 9 additions and 7 deletions

View file

@ -6,7 +6,12 @@ import { extractDirectives, generateHydrateScript } from '../hydration.js';
import { serializeProps } from '../serialize.js';
import { shorthash } from '../shorthash.js';
import { renderSlot } from './any.js';
import { isAstroComponentFactory, renderAstroComponent, renderTemplate, renderToIterable } from './astro.js';
import {
isAstroComponentFactory,
renderAstroComponent,
renderTemplate,
renderToIterable,
} from './astro.js';
import { Fragment, Renderer } from './common.js';
import { componentIsHTMLElement, renderHTMLElement } from './dom.js';
import { formatList, internalSpreadAttributes, renderElement, voidElementNames } from './util.js';

View file

@ -16,10 +16,7 @@ type NonAstroPageComponent = {
};
function nonAstroPageNeedsHeadInjection(pageComponent: NonAstroPageComponent): boolean {
return (
(needsHeadRenderingSymbol in pageComponent) &&
!!pageComponent[needsHeadRenderingSymbol]
);
return needsHeadRenderingSymbol in pageComponent && !!pageComponent[needsHeadRenderingSymbol];
}
export async function renderPage(