From 35a7c68577603aaa3263883ca98503f056340979 Mon Sep 17 00:00:00 2001 From: souvik Date: Fri, 22 Sep 2023 15:00:17 +0530 Subject: [PATCH] Update client.ts --- src/adapters/ws/client.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adapters/ws/client.ts b/src/adapters/ws/client.ts index ef5553f16..6bed92d88 100644 --- a/src/adapters/ws/client.ts +++ b/src/adapters/ws/client.ts @@ -78,7 +78,7 @@ class WsClientAdapter extends Adapter { const channels = [] for (const channel of this.channelNames) { if (this.parsedAsyncAPI.channels().get(channel).bindings().get('ws')) { - if (this.parsedAsyncAPI.channels().get(channel).servers().length < 0) { // NOSONAR + if (this.parsedAsyncAPI.channels().get(channel).servers().length !== 0) { // NOSONAR if ( this.parsedAsyncAPI .channels().get(channel)