Update discoverIds.ts

This commit is contained in:
TrèsAbhi authored and GitHub committed 2024-06-09 23:46:35 -05:00
1 parent fe9e300c80
commit 1fd9c9e6b0
1 file changed
+3 -1
+3 -1
View File
@@ -48,7 +48,9 @@ while (chunkIndex < preDiscoveredManifest.chunks) {
});
// no spread syntax: https://github.com/oven-sh/bun/issues/11734
preDiscovered.forEach((id) => !ids.includes(id) && ids.push(id));
preDiscovered.forEach((id) => {
if (!ids.includes(id)) ids.push(id);
});
console.log(
`Pre-discovered ${preDiscovered.length} ids (chunk ${chunkIndex})`,