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

@@ -342,11 +342,11 @@ func (b *Bithumb) GetOrders(ctx context.Context, orderID, transactionType string
params.Set("order_currency", orderCurrency.Upper().String())
if len(orderID) > 0 {
if orderID != "" {
params.Set("order_id", orderID)
}
if len(transactionType) > 0 {
if transactionType != "" {
params.Set("type", transactionType)
}
@@ -454,7 +454,7 @@ func (b *Bithumb) WithdrawCrypto(ctx context.Context, address, destination, curr
params := url.Values{}
params.Set("address", address)
if len(destination) > 0 {
if destination != "" {
params.Set("destination", destination)
}
params.Set("currency", strings.ToUpper(currency))

View File

@@ -78,7 +78,7 @@ func (b *Bithumb) wsHandleData(respRaw []byte) error {
return err
}
if len(resp.Status) > 0 {
if resp.Status != "" {
if resp.Status == "0000" {
return nil
}