Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 58308c8

Browse files
committedFeb 4, 2022
fixup! remove unneeded try/catch block
1 parent f196e49 commit 58308c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed
 

‎src/node/util.ts

+1-5
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ export const isHashMatch = async (password: string, hash: string) => {
166166
if (password === "" || hash === "" || !hash.startsWith("$")) {
167167
return false
168168
}
169-
try {
170-
return await argon2.verify(hash, password)
171-
} catch (error: any) {
172-
throw new Error(error)
173-
}
169+
return await argon2.verify(hash, password)
174170
}
175171

176172
/**

0 commit comments

Comments
 (0)
Please sign in to comment.