사소한 리팩토링 2

This commit is contained in:
static
2025-01-30 20:32:38 +09:00
parent 0a5ef2b970
commit 36006a9b72
3 changed files with 7 additions and 5 deletions

View File

@@ -114,7 +114,7 @@ export const uploadFile = async (
try {
const hashStream = createHash("sha256");
const [_, hash] = await Promise.all([
const [, hash] = await Promise.all([
pipeline(
encContentStream,
async function* (source) {
@@ -127,7 +127,7 @@ export const uploadFile = async (
),
encContentHash,
]);
if (hashStream.digest("base64") != hash) {
if (hashStream.digest("base64") !== hash) {
throw new Error("Invalid checksum");
}