mirror of
https://github.com/withastro/astro.git
synced 2025-01-13 22:11:20 -05:00
[ci] format
This commit is contained in:
parent
d81b6d9ebc
commit
cccc6034ae
1 changed files with 2 additions and 2 deletions
|
@ -75,10 +75,10 @@ class Slots {
|
||||||
const expression = getFunctionExpression(component);
|
const expression = getFunctionExpression(component);
|
||||||
if (expression) {
|
if (expression) {
|
||||||
const slot = expression(...args);
|
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);
|
if (cacheable) this.#cache.set(name, content);
|
||||||
return content;
|
return content;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue