1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-19 14:48:08 +02:00

Slightly shorten an Array.from usage in the SignatureManager class

This should be equivalent to the old code, and besides being ever so slightly shorter I'm also finding it a little bit easier to read at a glance.
This commit is contained in:
Jonas Jenwald 2025-02-13 20:04:02 +01:00
parent 74a7576c2c
commit 7dbf8c8e4b

View file

@ -739,12 +739,8 @@ class SignatureManager {
.then(async signatures => [
signatures,
await Promise.all(
Array.from(
signatures
.values()
.map(({ signatureData }) =>
SignatureExtractor.decompressSignature(signatureData)
)
Array.from(signatures.values(), ({ signatureData }) =>
SignatureExtractor.decompressSignature(signatureData)
)
),
]);