Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! remove unneeded try/catch block
  • Loading branch information
jsjoeio committed Feb 4, 2022
commit 58308c8e5b82b54d3f7d19961c781efdb57c23c7
6 changes: 1 addition & 5 deletions src/node/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ export const isHashMatch = async (password: string, hash: string) => {
if (password === "" || hash === "" || !hash.startsWith("$")) {
return false
}
try {
return await argon2.verify(hash, password)
} catch (error: any) {
throw new Error(error)
}
return await argon2.verify(hash, password)
}

/**
Expand Down