From c3582492dc074dbf01cd8c700264cb23bf0d5663 Mon Sep 17 00:00:00 2001 From: slowbackspace Date: Mon, 18 Dec 2023 15:19:29 +0100 Subject: [PATCH] chore: one liner transform --- src/routes/txs/hash/required-signers.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/routes/txs/hash/required-signers.ts b/src/routes/txs/hash/required-signers.ts index b9de923f..fb88d666 100644 --- a/src/routes/txs/hash/required-signers.ts +++ b/src/routes/txs/hash/required-signers.ts @@ -26,11 +26,7 @@ async function route(fastify: FastifyInstance) { return reply.send([]); } - const list: string[] = []; - - for (const row of rows) { - list.push(row.hash); - } + const list = rows.map(row => row.hash); const unpaged = isUnpaged(request);