diff --git a/exchanges/coinbasepro/coinbasepro_wrapper.go b/exchanges/coinbasepro/coinbasepro_wrapper.go index 15ec7620f4b..385aa3768ea 100644 --- a/exchanges/coinbasepro/coinbasepro_wrapper.go +++ b/exchanges/coinbasepro/coinbasepro_wrapper.go @@ -412,7 +412,8 @@ func (c *CoinbasePro) UpdateOrderbook(ctx context.Context, p currency.Pair, asse if p.IsEmpty() { return nil, currency.ErrCurrencyPairEmpty } - if err = c.CurrencyPairs.IsAssetEnabled(assetType); err != nil { + err = c.CurrencyPairs.IsAssetEnabled(assetType) + if err != nil { return nil, err } book := &orderbook.Base{