Skip to content

Commit 724b091

Browse files
committed
feat: remove void returns from hashers
1 parent 91140c9 commit 724b091

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/persistent-merkle-tree/src/hasher/as-sha256.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const hasher: Hasher = {
2424
doMerkleizeBlocksBytes(blocksBytes, padFor, output, offset, hashInto);
2525
},
2626
merkleizeBlockArray(blocks, blockLimit, padFor, output, offset) {
27-
return doMerkleizeBlockArray(blocks, blockLimit, padFor, output, offset, hashInto, buffer);
27+
doMerkleizeBlockArray(blocks, blockLimit, padFor, output, offset, hashInto, buffer);
2828
},
2929
digestNLevel(data: Uint8Array, nLevel: number): Uint8Array {
3030
return doDigestNLevel(data, nLevel, hashInto);

packages/persistent-merkle-tree/src/hasher/hashtree.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export const hasher: Hasher = {
4444
doMerkleizeBlocksBytes(blocksBytes, padFor, output, offset, hashInto);
4545
},
4646
merkleizeBlockArray(blocks, blockLimit, padFor, output, offset) {
47-
return doMerkleizeBlockArray(blocks, blockLimit, padFor, output, offset, hashInto, uint8Input);
47+
doMerkleizeBlockArray(blocks, blockLimit, padFor, output, offset, hashInto, uint8Input);
4848
},
4949
digestNLevel(data: Uint8Array, nLevel: number): Uint8Array {
5050
return doDigestNLevel(data, nLevel, hashInto);

packages/persistent-merkle-tree/src/hasher/noble.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const hasher: Hasher = {
4141
doMerkleizeBlocksBytes(blocksBytes, padFor, output, offset, hashInto);
4242
},
4343
merkleizeBlockArray(blocks, blockLimit, padFor, output, offset) {
44-
return doMerkleizeBlockArray(blocks, blockLimit, padFor, output, offset, hashInto, buffer);
44+
doMerkleizeBlockArray(blocks, blockLimit, padFor, output, offset, hashInto, buffer);
4545
},
4646
digestNLevel(data: Uint8Array, nLevel: number): Uint8Array {
4747
return doDigestNLevel(data, nLevel, hashInto);

0 commit comments

Comments
 (0)