mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Run format:fix
This commit is contained in:
parent
f4db3d8f45
commit
358786fccd
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@ const getKeysFromNode = function (node, pattern, callback) {
|
||||||
const keySet = {} // use hash to avoid duplicate results
|
const keySet = {} // use hash to avoid duplicate results
|
||||||
// scan over all keys looking for pattern
|
// scan over all keys looking for pattern
|
||||||
const doIteration = () =>
|
const doIteration = () =>
|
||||||
node.scan(cursor, 'MATCH', pattern, 'COUNT', 1000, function(error, reply) {
|
node.scan(cursor, 'MATCH', pattern, 'COUNT', 1000, function (error, reply) {
|
||||||
if (error) {
|
if (error) {
|
||||||
return callback(error)
|
return callback(error)
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ const getKeysFromNode = function (node, pattern, callback) {
|
||||||
for (const key of keys) {
|
for (const key of keys) {
|
||||||
keySet[key] = true
|
keySet[key] = true
|
||||||
}
|
}
|
||||||
if (cursor==='0') {
|
if (cursor === '0') {
|
||||||
// note redis returns string result not numeric
|
// note redis returns string result not numeric
|
||||||
return callback(null, Object.keys(keySet))
|
return callback(null, Object.keys(keySet))
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue