Skip to content

Commit 917463b

Browse files
authored
Fix redefine variable in async_compare.js
1 parent d8195c6 commit 917463b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/async_compare.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ var bcrypt = require('../bcrypt');
2020
console.log('compared true cb end: ' + (Date.now() - start) + 'ms');
2121

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

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

0 commit comments

Comments
 (0)