From aaeed5d18bac5b49db5f310fb094468eef1a4d69 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 27 Oct 2020 08:48:17 -0700 Subject: [PATCH] Revert "Another check for redis services configs" This reverts commit d6c3c8a294513769814af416c52c1eb3d91b7679. --- src/addons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/addons.js b/src/addons.js index 2d13063ef..8fcb89430 100644 --- a/src/addons.js +++ b/src/addons.js @@ -1903,7 +1903,7 @@ function clearRedis(app, options, callback) { assert.strictEqual(typeof options, 'object'); assert.strictEqual(typeof callback, 'function'); - if (app.servicesConfig['redis'] && app.servicesConfig['redis'].disabled) return callback(null); + if (app.servicesConfig['redis'].disabled) return callback(null); debugApp(app, 'Clearing redis'); @@ -1959,7 +1959,7 @@ function restoreRedis(app, options, callback) { assert.strictEqual(typeof options, 'object'); assert.strictEqual(typeof callback, 'function'); - if (app.servicesConfig['redis'] && app.servicesConfig['redis'].disabled) return callback(null); + if (app.servicesConfig['redis'].disabled) return callback(null); debugApp(app, 'Restoring redis');