Skip to content

Commit

Permalink
linter: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shazbert committed Jan 15, 2025
1 parent 5ce010d commit 6ec3204
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions exchanges/deribit/deribit_websocket.go
Original file line number Diff line number Diff line change
Expand Up @@ -836,12 +836,14 @@ func (d *Deribit) handleSubscription(method string, subs subscription.List) erro
err = common.AppendError(err, errors.New(s.String()))
}
}
if err != nil {
return err
}

if method == "unsubscribe" {
d.Websocket.RemoveSubscriptions(d.Websocket.Conn, subs...)
} else {
d.Websocket.AddSubscriptions(d.Websocket.Conn, subs...)
return d.Websocket.RemoveSubscriptions(d.Websocket.Conn, subs...)
}
return err
return d.Websocket.AddSubscriptions(d.Websocket.Conn, subs...)
}

func getValidatedCurrencyCode(pair currency.Pair) string {
Expand Down

0 comments on commit 6ec3204

Please sign in to comment.