Skip to content

Node.js based forum software built for the modern web

style changes

Barış Soner Uşaklı4316c9a56688
diff --git a/src/database/mongo/sorted.js b/src/database/mongo/sorted.js
index 08d7310a3e..b79ab7918a 100644
--- a/src/database/mongo/sorted.js
+++ b/src/database/mongo/sorted.js
@@ -535,11 +535,12 @@ module.exports = function(db, module) {
};
module.processSortedSet = function(setKey, process, batch, callback) {
- var done = false, ids = [], cursor = db.collection('objects').
- find({_key: setKey}).
- sort({score: 1}).
- project({_id: 0, value: 1}).
- batchSize(batch);
+ var done = false;
+ var ids = [];
+ var cursor = db.collection('objects').find({_key: setKey})
+ .sort({score: 1})
+ .project({_id: 0, value: 1})
+ .batchSize(batch);
async.whilst(
function() {