fix: resolve linting errors in App.tsx and async.ts

This commit is contained in:
Gigi
2025-10-17 20:09:20 +02:00
parent 7ad925dbd3
commit 744a145e9f
2 changed files with 8 additions and 8 deletions

View File

@@ -28,12 +28,7 @@ export async function mapWithConcurrency<T, R>(
const worker = async () => {
while (currentIndex < items.length) {
const index = currentIndex++
try {
results[index] = await mapper(items[index], index)
} catch (err) {
// Store error or handle as needed
throw err
}
results[index] = await mapper(items[index], index)
}
}