From f1ca7bd785acb91de68f3f39ad4c836d4486fd8b Mon Sep 17 00:00:00 2001 From: Ryan O'Hara-Reid Date: Mon, 18 Nov 2024 15:48:37 +1100 Subject: [PATCH] linter: fix --- exchanges/gateio/gateio_websocket.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/exchanges/gateio/gateio_websocket.go b/exchanges/gateio/gateio_websocket.go index 23c9c22698e..a1b9e2281f2 100644 --- a/exchanges/gateio/gateio_websocket.go +++ b/exchanges/gateio/gateio_websocket.go @@ -786,10 +786,8 @@ func (g *Gateio) handleSubscription(ctx context.Context, conn stream.Connection, var resp WsEventResponse if err = json.Unmarshal(result, &resp); err != nil { errs = common.AppendError(errs, err) - } else { - if resp.Error != nil && resp.Error.Code != 0 { - errs = common.AppendError(errs, fmt.Errorf("error while %s to channel %s error code: %d message: %s", payloads[k].Event, payloads[k].Channel, resp.Error.Code, resp.Error.Message)) - } + } else if resp.Error != nil && resp.Error.Code != 0 { + errs = common.AppendError(errs, fmt.Errorf("error while %s to channel %s error code: %d message: %s", payloads[k].Event, payloads[k].Channel, resp.Error.Code, resp.Error.Message)) } } return errs