Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove redundant variables #397

Merged
merged 2 commits into from Jun 12, 2016
Merged

Remove redundant variables #397

merged 2 commits into from Jun 12, 2016

Conversation

daniel-tp
Copy link
Contributor

Removed two redundant variables and just put their contents just where they are used.

@daniel-tp daniel-tp changed the title Remove redundant variables. Remove redundant variables Jun 11, 2016
@@ -23,8 +23,7 @@ program
return;
}
var salt = bcrypt.genSaltSync(8);
var hash = bcrypt.hashSync(password, salt);
user.password = hash;
user.password = bcrypt.hashSync(password, salt);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well get rid of the salt one while at it

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't want to take the change too far, but if it's wanted, sure.

@xPaw xPaw merged commit f8044bf into thelounge:master Jun 12, 2016
@xPaw xPaw added this to the 2.0.0 milestone Jun 12, 2016
@daniel-tp daniel-tp deleted the redundant branch June 12, 2016 12:10
@astorije astorije added the Type: Feature Tickets that describe a desired feature or PRs that add them to the project. label Jun 12, 2016
matburnham pushed a commit to matburnham/lounge that referenced this pull request Sep 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Feature Tickets that describe a desired feature or PRs that add them to the project.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants