Skip to content

Commit

Permalink
fixup! GateIO: Abstract GetOpenInterest
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Jan 14, 2025
1 parent ca9c38d commit e0486b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exchanges/gateio/gateio_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -2233,12 +2233,12 @@ func (g *Gateio) GetOpenInterest(ctx context.Context, keys ...key.PairAsset) ([]
continue
}
if len(keys) == 0 { // No keys: All enabled pairs
enabled, err := g.IsPairEnabled(pN, a)
enabled, err := g.IsPairEnabled(p, a)
if err == nil && !enabled {
err = currency.ErrPairNotEnabled
}
if err != nil {
errs = common.AppendError(errs, fmt.Errorf("%w from %s pair %s", err, a, pN))
errs = common.AppendError(errs, fmt.Errorf("%w from %s pair %s", err, a, p))
continue
}
} else { // More than one key; Any available pair

Check failure on line 2244 in exchanges/gateio/gateio_wrapper.go

View workflow job for this annotation

GitHub Actions / lint

elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
Expand Down

0 comments on commit e0486b7

Please sign in to comment.