Skip to content

Commit

Permalink
Does this fix all sloppy reassigns & shadowing?
Browse files Browse the repository at this point in the history
  • Loading branch information
cranktakular committed Feb 20, 2024
1 parent 93d6722 commit 529f7f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion exchanges/coinbasepro/coinbasepro_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down

0 comments on commit 529f7f3

Please sign in to comment.