mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 18:16:17 +01:00
removed optional params
This commit is contained in:
@@ -177,14 +177,6 @@ module.exports = function(db, module) {
|
||||
};
|
||||
|
||||
function getSortedSetUnion(sets, sort, start, stop, callback) {
|
||||
if (typeof start === 'function') {
|
||||
callback = start;
|
||||
start = 0;
|
||||
stop = -1;
|
||||
} else if (typeof stop === 'function') {
|
||||
callback = stop;
|
||||
stop = -1;
|
||||
}
|
||||
var limit = stop - start + 1;
|
||||
if (limit <= 0) {
|
||||
limit = 0;
|
||||
|
||||
Reference in New Issue
Block a user