summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar natemoo-re <natemoo-re@users.noreply.github.com> 2022-03-31 18:12:16 +0000
committerGravatar GitHub Actions <actions@github.com> 2022-03-31 18:12:16 +0000
commitcccc6034ae276a3204bd4031a5d3c8f189ae0b07 (patch)
tree9008ee0fa1416628f88affaf2cfa4455bd5029e2
parentd81b6d9ebc2176690aac3f538e84b5566acbdff4 (diff)
downloadastro-cccc6034ae276a3204bd4031a5d3c8f189ae0b07.tar.gz
astro-cccc6034ae276a3204bd4031a5d3c8f189ae0b07.tar.zst
astro-cccc6034ae276a3204bd4031a5d3c8f189ae0b07.zip
[ci] format
-rw-r--r--packages/astro/src/core/render/result.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/render/result.ts b/packages/astro/src/core/render/result.ts
index 0b0f24336..7c9a9c30f 100644
--- a/packages/astro/src/core/render/result.ts
+++ b/packages/astro/src/core/render/result.ts
@@ -75,10 +75,10 @@ class Slots {
const expression = getFunctionExpression(component);
if (expression) {
const slot = expression(...args);
- return await renderSlot(this.#result, slot).then((res) => res != null ? String(res) : res);
+ return await renderSlot(this.#result, slot).then((res) => (res != null ? String(res) : res));
}
}
- const content = await renderSlot(this.#result, this.#slots[name]).then((res) => res != null ? String(res) : res);
+ const content = await renderSlot(this.#result, this.#slots[name]).then((res) => (res != null ? String(res) : res));
if (cacheable) this.#cache.set(name, content);
return content;
}