Skip to content

Commit 58308c8

Browse files
committed
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)