Skip to content

Commit c914e47

Browse files
committed
fix prettier formatting
1 parent d2eeb63 commit c914e47

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

index.ts

+10-7
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ export class RedisStore extends Store {
4848

4949
// Create a redis and ioredis compatible client
5050
private normalizeClient(client: any): NormalizedRedisClient {
51-
let isRedis = "scanIterator" in client || "masters" in client;
52-
let isRedisCluster = "masters" in client;
51+
let isRedis = "scanIterator" in client || "masters" in client
52+
let isRedisCluster = "masters" in client
5353

5454
return {
5555
get: (key) => client.get(key),
@@ -67,15 +67,18 @@ export class RedisStore extends Store {
6767
scanIterator: (match, count) => {
6868
// node-redis createCluster impl.
6969
if (isRedisCluster) {
70-
return (async function *() {
70+
return (async function* () {
7171
for (const master of client.masters) {
72-
const nodeClient = await client.nodeClient(master);
72+
const nodeClient = await client.nodeClient(master)
7373

74-
for await (const key of nodeClient.scanIterator({ COUNT: count, MATCH: match })) {
75-
yield key;
74+
for await (const key of nodeClient.scanIterator({
75+
COUNT: count,
76+
MATCH: match,
77+
})) {
78+
yield key
7679
}
7780
}
78-
})();
81+
})()
7982
}
8083

8184
if (isRedis) return client.scanIterator({MATCH: match, COUNT: count})

0 commit comments

Comments
 (0)