0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-03-10 23:01:26 -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) { write(chunk) {
// if the chunk is already a SlotString, we concatenate // if the chunk is already a SlotString, we concatenate
if (chunk instanceof SlotString) { if (chunk instanceof SlotString) {
content += chunk content += chunk;
if (chunk.instructions) { if (chunk.instructions) {
instructions ??= [] instructions ??= [];
instructions.push(...chunk.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') { else if (typeof chunk === 'object' && 'type' in chunk && typeof chunk.type === 'string') {
if (instructions === null) { if (instructions === null) {
instructions = []; instructions = [];