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