0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-27 22:19:04 -05:00

[ci] format

This commit is contained in:
Matthew Phillips 2024-05-16 16:37:15 +00:00 committed by astrobot-houston
parent 749a7ac967
commit fac592350e

View file

@ -217,13 +217,13 @@ export async function renderToAsyncIterable(
async next() {
if (result.cancelled) return { done: true, value: undefined };
if(next !== null) {
if (next !== null) {
await next.promise;
}
// Only create a new promise if rendering is still ongoing. Otherwise
// there will be a dangling promises that breaks tests (probably not an actual app)
if(!renderingComplete) {
if (!renderingComplete) {
next = promiseWithResolvers();
}