From 2809d136000cd694c1003392c5cd99441ee26d35 Mon Sep 17 00:00:00 2001 From: Arsh Date: Tue, 5 Mar 2024 15:57:04 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/runtime/server/render/slot.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/astro/src/runtime/server/render/slot.ts b/packages/astro/src/runtime/server/render/slot.ts index 549c639a54..95f9008250 100644 --- a/packages/astro/src/runtime/server/render/slot.ts +++ b/packages/astro/src/runtime/server/render/slot.ts @@ -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 = [];