remove redundant toLowerCase call

This commit is contained in:
Nebel 2024-09-04 23:10:33 +09:00
parent 79ff27dbe4
commit 6ec0f55736
Signed by: nebel
GPG key ID: 79807D08C6EF6460

View file

@ -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,
);