From cccc6034ae276a3204bd4031a5d3c8f189ae0b07 Mon Sep 17 00:00:00 2001 From: natemoo-re Date: Thu, 31 Mar 2022 18:12:16 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/render/result.ts | 4 ++-- 1 file 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; }