Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fix(users): Removing redundant variables
Browse files Browse the repository at this point in the history
Removing redundant variables defined and not used
  • Loading branch information
farajfarook committed Jan 16, 2016
1 parent b9e3fd1 commit f9c7403
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,8 @@ exports.signup = function (req, res) {
// For security measurement we remove the roles from the req.body object
delete req.body.roles;

// Init Variables
// Init user and add missing fields
var user = new User(req.body);
var message = null;

// Add missing user fields
user.provider = 'local';
user.displayName = user.firstName + ' ' + user.lastName;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ exports.validateResetToken = function (req, res) {
exports.reset = function (req, res, next) {
// Init Variables
var passwordDetails = req.body;
var message = null;

async.waterfall([

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ exports.update = function (req, res) {
*/
exports.changeProfilePicture = function (req, res) {
var user = req.user;
var message = null;
var upload = multer(config.uploads.profileUpload).single('newProfilePicture');
var profileUploadFileFilter = require(path.resolve('./config/lib/multer')).profileUploadFileFilter;

Expand Down

0 comments on commit f9c7403

Please sign in to comment.