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:
parent
74a7576c2c
commit
7dbf8c8e4b
1 changed files with 2 additions and 6 deletions
|
@ -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)
|
||||
)
|
||||
),
|
||||
]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue