Skip to content

Node.js based forum software built for the modern web

remove empty block

barisusakli08049c071286
diff --git a/src/batch.js b/src/batch.js
index f15d06a453..9a0271f29b 100644
--- a/src/batch.js
+++ b/src/batch.js
@@ -24,9 +24,7 @@ exports.processSortedSet = function (setKey, process, options, callback) {
// Progress bar handling (upgrade scripts)
if (options.progress) {
db.sortedSetCard(setKey, function (err, total) {
- if (err) {
- // Unable to get total, do nothing.
- } else {
+ if (!err) {
options.progress.total = total;
}
});