mirror of
https://github.com/withastro/astro.git
synced 2025-01-27 22:19:04 -05:00
[ci] format
This commit is contained in:
parent
749a7ac967
commit
fac592350e
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue