Skip to content

Commit

Permalink
Merge pull request #1045 from asportnoy/patch-1
Browse files Browse the repository at this point in the history
Fix redefine variable in async_compare.js
  • Loading branch information
recrsn authored Feb 7, 2025
2 parents d8195c6 + 917463b commit 87f001b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/async_compare.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ var bcrypt = require('../bcrypt');
console.log('compared true cb end: ' + (Date.now() - start) + 'ms');

// compare
const res = await bcrypt.compare('bacon', crypted)
console.log('compared false: ' + res);
const res2 = await bcrypt.compare('bacon', crypted)
console.log('compared false: ' + res2);
console.log('compared false cb end: ' + (Date.now() - start) + 'ms');

console.log('end: ' + (Date.now() - start) + 'ms');
Expand Down

0 comments on commit 87f001b

Please sign in to comment.