Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! Kraken: More nil protection errs
Browse files Browse the repository at this point in the history
gbjk committed Jan 17, 2024
1 parent 07a8eec commit 71f3cf5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions exchanges/kraken/kraken_websocket.go
Original file line number Diff line number Diff line change
@@ -599,9 +599,6 @@ func (k *Kraken) wsProcessTickers(c *stream.ChannelSubscription, data map[string

// wsProcessSpread converts spread/orderbook data and sends it to the datahandler
func (k *Kraken) wsProcessSpread(c *stream.ChannelSubscription, data []interface{}) {
if c == nil {
return common.ErrNilPointer
}
if len(data) < 5 {
k.Websocket.DataHandler <- fmt.Errorf("%s unexpected wsProcessSpread data length", k.Name)
return

0 comments on commit 71f3cf5

Please sign in to comment.