Skip to content

Removed unreferenced variable "rnd"#9

Closed
jordaaash wants to merge 1 commit intodcodeIO:masterfrom
jordaaash:patch-1
Closed

Removed unreferenced variable "rnd"#9
jordaaash wants to merge 1 commit intodcodeIO:masterfrom
jordaaash:patch-1

Conversation

@jordaaash
Copy link
Copy Markdown

The variable rnd was declared and set but then is not used on line 755. Instead, rounds is used, which causes the function to error if a rounds argument is not provided and instead the function is called with only a callback argument. This causes an asynchronous exception, Error: Illegal argument types: function to be thrown on line 756. The code now mirrors that of the genSaltSync method.

The variable `rnd` was declared and set but then is not used on line 755. Instead, `rounds` is used, which causes the function to error if a `rounds` argument is not provided and instead the function is called with only a callback argument. This causes an asynchronous exception, `Error: Illegal argument types: function` to be thrown on line 756. The code now mirrors that of the `genSaltSync` method.
@jordaaash
Copy link
Copy Markdown
Author

Sorry about the whitespace changes, my editor did this automatically. I also ran tests and performed an npm run make so that's updated the dist files. Finally, I rebased the commits. If you'd like to merge the PR but want me to clean anything up or revert the whitespace changes, let me know and I'd be happy to.

@dcodeIO dcodeIO closed this in a553227 Jul 4, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants