Skip to content

Commit 6eb6e71

Browse files
committed
fix: js crash
1 parent ecd7b76 commit 6eb6e71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RedisQueue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ export class RedisQueue extends EventEmitter<EventMap>
11051105
(this.options.cleanupFilter || '*').replace(/\*/g, '.*'),
11061106
'i',
11071107
);
1108-
const clients = await this.writer.client('LIST') as string;
1108+
const clients = await this.writer.client('LIST') as string || '';
11091109
const connectedKeys = (clients.match(RX_CLIENT_NAME) || [])
11101110
.filter((name: string) =>
11111111
RX_CLIENT_TEST.test(name) && filter.test(name),

0 commit comments

Comments
 (0)