user.js: Else in the sky with diamonds - fixing syntactic style.

v1.18.x
Denis Wolf 11 years ago
parent b179991be4
commit 89e9d56dee

@ -26,7 +26,7 @@ var utils = require('./../public/src/utils.js'),
function(next) {
if (email !== undefined) {
next(!utils.isEmailValid(email) ? new Error('Invalid Email!') : null);
}else {
} else {
next();
}
},
@ -36,7 +36,7 @@ var utils = require('./../public/src/utils.js'),
function(next) {
if (password !== undefined) {
next(!utils.isPasswordValid(password) ? new Error('Invalid Password!') : null);
}else {
} else {
next();
}
},
@ -450,7 +450,7 @@ var utils = require('./../public/src/utils.js'),
if (!err) {
if (pids && pids.length) {
callback(pids);
}else {
} else {
callback([]);
}
} else {
@ -1031,7 +1031,7 @@ var utils = require('./../public/src/utils.js'),
notifications.get(nid, uid, function(notifObj) {
if (notifObj.uniqueId === uniqueId) {
next(true);
}else {
} else {
next(false);
}
});

Loading…
Cancel
Save