Skip to content

Commit 3067909

Browse files
committed
WIP 4d552
1 parent ba526ec commit 3067909

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/site/lib/sitemap/crawler.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ function createLimiter(limit: number) {
7373
const next = () => {
7474
if (queue.length > 0 && activeCount < limit) {
7575
activeCount++;
76-
const resolve = queue.shift()!;
77-
resolve();
76+
const resolve = queue.shift();
77+
if (resolve) {
78+
resolve();
79+
}
7880
}
7981
};
8082

0 commit comments

Comments
 (0)