mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
remove empty block
This commit is contained in:
@@ -24,9 +24,7 @@ exports.processSortedSet = function (setKey, process, options, callback) {
|
|||||||
// Progress bar handling (upgrade scripts)
|
// Progress bar handling (upgrade scripts)
|
||||||
if (options.progress) {
|
if (options.progress) {
|
||||||
db.sortedSetCard(setKey, function (err, total) {
|
db.sortedSetCard(setKey, function (err, total) {
|
||||||
if (err) {
|
if (!err) {
|
||||||
// Unable to get total, do nothing.
|
|
||||||
} else {
|
|
||||||
options.progress.total = total;
|
options.progress.total = total;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user