mirror of
https://github.com/kmc7468/arkvault.git
synced 2026-11-04 08:10:28 +09:00
사소한 리팩토링 2
This commit is contained in:
1 parent
0a5ef2b970
commit
36006a9b72
3 files changed
+7
-5
No files matched your search
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user