whitespace fixes

This commit is contained in:
Julian Lam
2015-11-07 12:31:19 -05:00
parent 9de8250697
commit ad5ddcbb73
2 changed files with 4 additions and 4 deletions

View File

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

View File

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