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

Loading…
Cancel
Save