Skip to content

Commit

Permalink
Merge pull request #1043 from nikhilnishadoo7/fix/typo-overridden-word
Browse files Browse the repository at this point in the history
fix/typo-overridden-word
  • Loading branch information
recrsn authored Feb 7, 2025
2 parents 87f001b + 00bb455 commit cde8bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bcrypt.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ module.exports.genSalt = function genSalt(rounds, minor, cb) {

// if callback is first argument, then use defaults for others
if (typeof arguments[0] === 'function') {
// have to set callback first otherwise arguments are overriden
// have to set callback first otherwise arguments are overridden
cb = arguments[0];
rounds = 10;
minor = 'b';
// callback is second argument
} else if (typeof arguments[1] === 'function') {
// have to set callback first otherwise arguments are overriden
// have to set callback first otherwise arguments are overridden
cb = arguments[1];
minor = 'b';
}
Expand Down

0 comments on commit cde8bac

Please sign in to comment.