Revert "Another check for redis services configs"

This reverts commit d6c3c8a294.
This commit is contained in:
Girish Ramakrishnan
2020-10-27 08:48:17 -07:00
parent d6c3c8a294
commit aaeed5d18b

View File

@@ -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');