[ci] format

This commit is contained in:
natemoo-re 2022-03-31 18:12:16 +00:00 committed by GitHub Actions
parent d81b6d9ebc
commit cccc6034ae

View file

@ -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;
}