From 6ec0f5573612cddda98ad13d9e0ef9b2bddb8a24 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Wed, 4 Sep 2024 23:10:33 +0900 Subject: [PATCH] remove redundant toLowerCase call --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index aec2646..8d9e112 100644 --- a/src/index.ts +++ b/src/index.ts @@ -84,7 +84,7 @@ export async function createIntegrityMetadata( if (!supportedHashAlgorithm.includes(alg)) return ""; const arrayBuffer = await crypto.subtle.digest( - supportedHashAlgorithmName[alg.toLowerCase()], + supportedHashAlgorithmName[alg], data, );