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
@ -739,13 +739,9 @@ class SignatureManager {
|
||||
.then(async signatures => [
|
||||
signatures,
|
||||
await Promise.all(
|
||||
Array.from(
|
||||
signatures
|
||||
.values()
|
||||
.map(({ signatureData }) =>
|
||||
Array.from(signatures.values(), ({ signatureData }) =>
|
||||
SignatureExtractor.decompressSignature(signatureData)
|
||||
)
|
||||
)
|
||||
),
|
||||
]);
|
||||
return;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user