mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-01 15:10:44 +00:00
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:
@@ -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))
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user