From d09c21e3c8a70d697633757dcb7ca3f30d8c5045 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= Date: Sat, 30 Dec 2023 16:35:21 +0000 Subject: [PATCH] unnecessary indirection --- src/helpers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers.ts b/src/helpers.ts index af652cf..0656419 100644 --- a/src/helpers.ts +++ b/src/helpers.ts @@ -10,7 +10,7 @@ export async function map_concurrent( map_fn: (input: In) => Promise, ): Promise> { // apply map_fn to inputs - const outputs = await Promise.all([...inputs].map((input) => map_fn(input))); + const outputs = await Promise.all([...inputs].map(map_fn)); // create map object return new Map(