[ci] format

This commit is contained in:
matthewp 2023-02-09 16:52:23 +00:00 committed by fredkbot
parent 3390cb8444
commit e44e340f7e
4 changed files with 5 additions and 5 deletions

View file

@ -65,7 +65,7 @@ export function stringifyChunk(result: SSRResult, chunk: string | SlotString | R
// Astro rendered within JSX, head will be injected by the page itself.
case ScopeFlags.JSX | ScopeFlags.Astro: {
if(hasScopeFlag(result, ScopeFlags.JSX)) {
if (hasScopeFlag(result, ScopeFlags.JSX)) {
return '';
}
break;
@ -73,7 +73,7 @@ export function stringifyChunk(result: SSRResult, chunk: string | SlotString | R
// If the current scope is with Astro.slots.render()
case ScopeFlags.Slot: {
if(hasScopeFlag(result, ScopeFlags.RenderSlot)) {
if (hasScopeFlag(result, ScopeFlags.RenderSlot)) {
return '';
}
break;

View file

@ -4,7 +4,7 @@ import type { RenderInstruction } from './types.js';
import { HTMLString, markHTMLString } from '../escape.js';
import { renderChild } from './any.js';
import { createScopedResult, hasScopeFlag, ScopeFlags } from './scope.js';
import { createScopedResult, ScopeFlags } from './scope.js';
type RenderTemplateResult = ReturnType<typeof renderTemplate>;
export type ComponentSlots = Record<string, ComponentSlotValue>;