Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
natemoo-re authored and actions-user committed Mar 31, 2022
1 parent d81b6d9 commit cccc603
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/core/render/result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cccc603

Please sign in to comment.