From ed659cc515464a099d7cc0159c7333c97327bf20 Mon Sep 17 00:00:00 2001 From: Gareth Kirwan Date: Wed, 6 Nov 2024 15:11:53 +0700 Subject: [PATCH] fixup! Huobi: Add V2 websocket support --- exchanges/huobi/huobi_websocket.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/exchanges/huobi/huobi_websocket.go b/exchanges/huobi/huobi_websocket.go index a1ab7f0b9b7..cf0fc875440 100644 --- a/exchanges/huobi/huobi_websocket.go +++ b/exchanges/huobi/huobi_websocket.go @@ -692,9 +692,8 @@ func channelName(s *subscription.Subscription, p *currency.Pair) string { if n, ok := subscriptionNames[name]; ok { if p != nil { return fmt.Sprintf(n, p) - } else { - return n } + return n } panic(subscription.ErrPrivateChannelName) }