mirror of
https://github.com/withastro/astro.git
synced 2025-03-10 23:01:26 -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) {
|
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 = [];
|
||||||
|
|
Loading…
Add table
Reference in a new issue