whitespace fixes

v1.18.x
Julian Lam 9 years ago
parent 9de8250697
commit ad5ddcbb73

@ -79,8 +79,8 @@ SocketRooms.getAll = function(socket, data, callback) {
totals.topics = {}; totals.topics = {};
topTenTopics.forEach(function(topic, index) { topTenTopics.forEach(function(topic, index) {
totals.topics[topic.tid] = { totals.topics[topic.tid] = {
value: topic.count || 0, value: topic.count || 0,
title: validator.escape(titles[index].title) title: validator.escape(titles[index].title)
}; };
}); });

@ -536,7 +536,7 @@ Upgrade.upgrade = function(callback) {
if (err) { if (err) {
return next(err); return next(err);
} }
if (!userData.picture || !userData.gravatarpicture) { if (!userData.picture || !userData.gravatarpicture) {
return next(); return next();
} }
@ -548,7 +548,7 @@ Upgrade.upgrade = function(callback) {
}, },
function (next) { function (next) {
db.deleteObjectField('user:' + uid, 'gravatarpicture', next); db.deleteObjectField('user:' + uid, 'gravatarpicture', next);
} }
], next); ], next);
} else { } else {
db.deleteObjectField('user:' + uid, 'gravatarpicture', next); db.deleteObjectField('user:' + uid, 'gravatarpicture', next);

Loading…
Cancel
Save