0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

[ci] format

This commit is contained in:
Arsh 2024-03-05 15:57:04 +00:00 committed by astrobot-houston
parent 507b4ac246
commit 2809d13600

View file

@ -54,13 +54,12 @@ export async function renderSlotToString(
write(chunk) {
// if the chunk is already a SlotString, we concatenate
if (chunk instanceof SlotString) {
content += chunk
content += chunk;
if (chunk.instructions) {
instructions ??= []
instructions.push(...chunk.instructions)
instructions ??= [];
instructions.push(...chunk.instructions);
}
}
else if (chunk instanceof Response) return;
} else if (chunk instanceof Response) return;
else if (typeof chunk === 'object' && 'type' in chunk && typeof chunk.type === 'string') {
if (instructions === null) {
instructions = [];