mirror of
https://github.com/dergigi/boris.git
synced 2026-01-21 07:44:56 +01:00
fix: resolve linting errors in App.tsx and async.ts
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user