From 358786fccd78cd20fe4bd576e019ce0b98a53b2e Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Tue, 25 May 2021 15:45:42 +0100 Subject: [PATCH] Run format:fix --- services/document-updater/expire_docops.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/document-updater/expire_docops.js b/services/document-updater/expire_docops.js index 3eba0d547c..398bf5229a 100644 --- a/services/document-updater/expire_docops.js +++ b/services/document-updater/expire_docops.js @@ -11,7 +11,7 @@ const getKeysFromNode = function (node, pattern, callback) { const keySet = {} // use hash to avoid duplicate results // scan over all keys looking for pattern const doIteration = () => - node.scan(cursor, 'MATCH', pattern, 'COUNT', 1000, function(error, reply) { + node.scan(cursor, 'MATCH', pattern, 'COUNT', 1000, function (error, reply) { if (error) { return callback(error) } @@ -20,7 +20,7 @@ const getKeysFromNode = function (node, pattern, callback) { for (const key of keys) { keySet[key] = true } - if (cursor==='0') { + if (cursor === '0') { // note redis returns string result not numeric return callback(null, Object.keys(keySet)) } else {