[ci] format
This commit is contained in:
parent
b55f76c1ca
commit
5f092230f6
2 changed files with 9 additions and 7 deletions
|
@ -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';
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue