From 529f7f317adc1e807d3c9067f2b0965b271e19b5 Mon Sep 17 00:00:00 2001 From: Samuel Reid <43227667+cranktakular@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:41:34 +1100 Subject: [PATCH] Does this fix all sloppy reassigns & shadowing? --- exchanges/coinbasepro/coinbasepro_wrapper.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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{