From 08049c071286dff4176ca0277d6d2c119ff8c1d7 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Sat, 22 Apr 2017 13:49:10 -0400 Subject: [PATCH] remove empty block --- src/batch.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } });