Commit 9267d45b authored by Anthony Morris's avatar Anthony Morris
Browse files

Remove redundant comparison

parent 7b28baf3
......@@ -15,5 +15,5 @@ export default function safeCompare(stringA: string, stringB: string) {
const buffB = Buffer.alloc(bLen, 0, 'utf8');
buffB.write(stringB);
return crypto.timingSafeEqual(buffA, buffB) && aLen === bLen;
return crypto.timingSafeEqual(buffA, buffB);
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment