Skip to content

Commit

Permalink
Fix redefine variable in async_compare.js
Browse files Browse the repository at this point in the history
  • Loading branch information
asportnoy authored Jul 18, 2024
1 parent d8195c6 commit 917463b
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 917463b

Please sign in to comment.