Skip to content

Commit 87f001b

Browse files
authored
Merge pull request #1045 from asportnoy/patch-1
Fix redefine variable in async_compare.js
2 parents d8195c6 + 917463b commit 87f001b

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)