summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar bholmesdev <bholmesdev@users.noreply.github.com> 2023-02-01 13:29:00 +0000
committerGravatar fredkbot <fred+astrobot@astro.build> 2023-02-01 13:29:00 +0000
commit01ef1e565b45615f0015437c346a9c8465cc34dd (patch)
tree7116174e000feee956765b8d0807095064c830bf
parentf91615f5c04fde36f115dad9110dd75254efd61d (diff)
downloadastro-01ef1e565b45615f0015437c346a9c8465cc34dd.tar.gz
astro-01ef1e565b45615f0015437c346a9c8465cc34dd.tar.zst
astro-01ef1e565b45615f0015437c346a9c8465cc34dd.zip
[ci] format
Diffstat (limited to '')
-rw-r--r--packages/astro/src/runtime/server/render/common.ts4
-rw-r--r--packages/astro/src/runtime/server/render/component.ts6
2 files changed, 5 insertions, 5 deletions
diff --git a/packages/astro/src/runtime/server/render/common.ts b/packages/astro/src/runtime/server/render/common.ts
index dbb9a6ec5..def7dedd3 100644
--- a/packages/astro/src/runtime/server/render/common.ts
+++ b/packages/astro/src/runtime/server/render/common.ts
@@ -93,7 +93,7 @@ export function chunkToByteArray(
if (chunk instanceof Uint8Array) {
return chunk as Uint8Array;
}
- // stringify chunk might return a HTMLString
- let stringified = stringifyChunk(result, chunk);
+ // stringify chunk might return a HTMLString
+ let stringified = stringifyChunk(result, chunk);
return encoder.encode(stringified.toString());
}
diff --git a/packages/astro/src/runtime/server/render/component.ts b/packages/astro/src/runtime/server/render/component.ts
index a2ab2e327..034e79667 100644
--- a/packages/astro/src/runtime/server/render/component.ts
+++ b/packages/astro/src/runtime/server/render/component.ts
@@ -261,11 +261,11 @@ If you're still stuck, please open an issue on GitHub or join us at https://astr
if (isPage || renderer?.name === 'astro:jsx') {
yield html;
- } else if(html && html.length > 0) {
+ } else if (html && html.length > 0) {
yield markHTMLString(html.replace(/\<\/?astro-slot\>/g, ''));
} else {
- yield '';
- }
+ yield '';
+ }
})();
}