Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
lilnasy authored and astrobot-houston committed Mar 5, 2024
1 parent 507b4ac commit 2809d13
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/astro/src/runtime/server/render/slot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 2809d13

Please sign in to comment.