0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -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() { async next() {
if (result.cancelled) return { done: true, value: undefined }; if (result.cancelled) return { done: true, value: undefined };
if(next !== null) { if (next !== null) {
await next.promise; await next.promise;
} }
// Only create a new promise if rendering is still ongoing. Otherwise // 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) // there will be a dangling promises that breaks tests (probably not an actual app)
if(!renderingComplete) { if (!renderingComplete) {
next = promiseWithResolvers(); next = promiseWithResolvers();
} }