Skip to content

Commit

Permalink
assert: adjust var name
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmillr committed Mar 14, 2024
1 parent 6ae82e7 commit 89dcae6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/_assert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ type Hash = {
outputLen: number;
create: any;
};
function hash(hash: Hash) {
if (typeof hash !== 'function' || typeof hash.create !== 'function')
function hash(h: Hash) {
if (typeof h !== 'function' || typeof h.create !== 'function')
throw new Error('Hash should be wrapped by utils.wrapConstructor');
number(hash.outputLen);
number(hash.blockLen);
number(h.outputLen);
number(h.blockLen);
}

function exists(instance: any, checkFinished = true) {
Expand Down

0 comments on commit 89dcae6

Please sign in to comment.