From f16517f5eb594b7e7ad5805628bed758a9949e92 Mon Sep 17 00:00:00 2001 From: Luoyy <10894778+zishang520@users.noreply.github.com> Date: Sat, 21 Sep 2024 16:36:08 +0800 Subject: [PATCH] refactor: Remove redundant condition `this.ackRequests.has(requestId)` fixes socketio/socket.io-redis-adapter#549 --- lib/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.ts b/lib/index.ts index 57a0f62..3dc633b 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -526,7 +526,7 @@ export class RedisAdapter extends Adapter { if ( !requestId || - !(this.requests.has(requestId) || this.ackRequests.has(requestId)) + !this.requests.has(requestId) ) { debug("ignoring unknown request"); return;