From 38e7ecbb412e909d281cd375cc7ad77e6bef12a0 Mon Sep 17 00:00:00 2001 From: barisusakli Date: Tue, 30 Dec 2014 22:06:48 -0500 Subject: [PATCH] setRemove doesnt return result --- app.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/app.js b/app.js index fd30123972..fb757a497d 100644 --- a/app.js +++ b/app.js @@ -328,14 +328,9 @@ function resetThemes(callback) { function resetPlugin(pluginId) { var db = require('./src/database'); - db.setRemove('plugins:active', pluginId, function(err, result) { - if (err || result !== 1) { - winston.error('[reset] Could not disable plugin: %s', pluginId); - if (err) { - winston.error('[reset] Encountered error: %s', err.message); - } else { - winston.info('[reset] Perhaps it has already been disabled?'); - } + db.setRemove('plugins:active', pluginId, function(err) { + if (err) { + winston.error('[reset] Could not disable plugin: %s encountered error %s', pluginId, err.message); } else { winston.info('[reset] Plugin `%s` disabled', pluginId); }