Skip to content

Commit

Permalink
chore: one liner transform
Browse files Browse the repository at this point in the history
  • Loading branch information
slowbackspace committed Dec 18, 2023
1 parent 8eee5f4 commit c358249
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/routes/txs/hash/required-signers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit c358249

Please sign in to comment.