mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-02 15:10:46 +00:00
qa/spelling: Add Codespell support (#1121)
* Add codespell support * Fix paths * Add HTML files to exclusion list
This commit is contained in:
@@ -600,7 +600,7 @@ func (b *BTSE) calculateTradingFee(ctx context.Context, feeBuilder *exchange.Fee
|
||||
}
|
||||
feeTiers, err := b.GetFeeInformation(ctx, formattedPair.String())
|
||||
if err != nil {
|
||||
// TODO: Return actual error, we should't pivot around errors.
|
||||
// TODO: Return actual error, we shouldn't pivot around errors.
|
||||
if feeBuilder.IsMaker {
|
||||
return 0.001
|
||||
}
|
||||
|
||||
@@ -711,7 +711,7 @@ func TestStatusToStandardStatus(t *testing.T) {
|
||||
for i := range testCases {
|
||||
result, _ := stringToOrderStatus(testCases[i].Case)
|
||||
if result != testCases[i].Result {
|
||||
t.Errorf("Exepcted: %v, received: %v", testCases[i].Result, result)
|
||||
t.Errorf("Expected: %v, received: %v", testCases[i].Result, result)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -706,7 +706,7 @@ func (b *BTSE) GetDepositAddress(ctx context.Context, c currency.Code, accountID
|
||||
return nil, err
|
||||
}
|
||||
|
||||
exctractor := func(addr string) (string, string) {
|
||||
extractor := func(addr string) (string, string) {
|
||||
if strings.Contains(addr, ":") {
|
||||
split := strings.Split(addr, ":")
|
||||
return split[0], split[1]
|
||||
@@ -720,7 +720,7 @@ func (b *BTSE) GetDepositAddress(ctx context.Context, c currency.Code, accountID
|
||||
return nil, err
|
||||
}
|
||||
if len(addressCreate) != 0 {
|
||||
addr, tag := exctractor(addressCreate[0].Address)
|
||||
addr, tag := extractor(addressCreate[0].Address)
|
||||
return &deposit.Address{
|
||||
Address: addr,
|
||||
Tag: tag,
|
||||
@@ -728,7 +728,7 @@ func (b *BTSE) GetDepositAddress(ctx context.Context, c currency.Code, accountID
|
||||
}
|
||||
return nil, errors.New("address not found")
|
||||
}
|
||||
addr, tag := exctractor(address[0].Address)
|
||||
addr, tag := extractor(address[0].Address)
|
||||
return &deposit.Address{
|
||||
Address: addr,
|
||||
Tag: tag,
|
||||
|
||||
Reference in New Issue
Block a user