CI/build: Update Go version, linters and fix minor issues (#1473)

* CI/build: Update Go version, linters and fix minor issues

* Bump golangci-lint to v1.56.1

* BinanceUS: Make uint usage consistent

* Throw blank identifiers into the trash
This commit is contained in:
Adrian Gallagher
2024-02-14 11:02:06 +11:00
committed by GitHub
parent 9ff502bac2
commit 08da42ddb7
79 changed files with 364 additions and 374 deletions

View File

@@ -80,7 +80,7 @@ func (g *Gemini) GetSymbolDetails(ctx context.Context, symbol string) ([]SymbolD
// GetTicker returns information about recent trading activity for the symbol
func (g *Gemini) GetTicker(ctx context.Context, currencyPair string) (TickerV2, error) {
ticker := TickerV2{}
path := fmt.Sprintf("/v2/ticker/%s", currencyPair)
path := "/v2/ticker/" + currencyPair
err := g.SendHTTPRequest(ctx, exchange.RestSpot, path, &ticker)
if err != nil {
return ticker, err
@@ -334,7 +334,7 @@ func (g *Gemini) GetCryptoDepositAddress(ctx context.Context, depositAddlabel, c
response := DepositAddress{}
req := make(map[string]interface{})
if len(depositAddlabel) > 0 {
if depositAddlabel != "" {
req["label"] = depositAddlabel
}