mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
[ci] format
This commit is contained in:
parent
507b4ac246
commit
2809d13600
1 changed files with 4 additions and 5 deletions
|
@ -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 = [];
|
||||
|
|
Loading…
Reference in a new issue