Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6b1d1a6

Browse files
committedJul 13, 2021
chore: Prettier updates
1 parent 13f63f5 commit 6b1d1a6

File tree

60 files changed

+1375
-10843
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1375
-10843
lines changed
 

‎modules/cache-material/src/build_cryptographic_materials_cache_key_helpers.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,8 @@ export function buildCryptographicMaterialsCacheKeyHelpers<
2121
toUtf8: (input: Uint8Array) => string,
2222
sha512: (...data: (Uint8Array | string)[]) => Promise<Uint8Array>
2323
): CryptographicMaterialsCacheKeyHelpersInterface<S> {
24-
const {
25-
serializeEncryptionContext,
26-
serializeEncryptedDataKey,
27-
} = serializeFactory(fromUtf8)
24+
const { serializeEncryptionContext, serializeEncryptedDataKey } =
25+
serializeFactory(fromUtf8)
2826

2927
return {
3028
buildEncryptionMaterialCacheKey,

‎modules/cache-material/src/caching_cryptographic_materials_decorators.ts

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,17 @@ export function getEncryptionMaterials<S extends SupportedAlgorithmSuites>({
8484
this: CachingMaterialsManager<S>,
8585
request: EncryptionRequest<S>
8686
): Promise<EncryptionMaterial<S>> {
87-
const {
88-
suite,
89-
encryptionContext,
90-
plaintextLength,
91-
commitmentPolicy,
92-
} = request
87+
const { suite, encryptionContext, plaintextLength, commitmentPolicy } =
88+
request
9389

9490
/* Check for early return (Postcondition): If I can not cache the EncryptionMaterial, do not even look. */
9591
if (
9692
(suite && !suite.cacheSafe) ||
9793
typeof plaintextLength !== 'number' ||
9894
plaintextLength < 0
9995
) {
100-
const material = await this._backingMaterialsManager.getEncryptionMaterials(
101-
request
102-
)
96+
const material =
97+
await this._backingMaterialsManager.getEncryptionMaterials(request)
10398
return material
10499
}
105100

0 commit comments

Comments
 (0)
Please sign in to comment.