mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-06-07 23:16:53 +00:00
Makefile: add new recipes and linter features (#244)
* Makefile: add new recipes and linter features * expand linter coverage and fix issues * Update makefile * address PR nitterinos
This commit is contained in:
@@ -277,11 +277,11 @@ func (e *EXMO) GetCryptoDepositAddress() (map[string]string, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
switch result.(type) {
|
||||
switch r := result.(type) {
|
||||
case map[string]interface{}:
|
||||
mapString := make(map[string]string)
|
||||
|
||||
for key, value := range result.(map[string]interface{}) {
|
||||
for key, value := range r {
|
||||
strValue := fmt.Sprintf("%v", value)
|
||||
mapString[key] = strValue
|
||||
}
|
||||
|
||||
@@ -369,7 +369,7 @@ func TestWithdrawFiat(t *testing.T) {
|
||||
|
||||
_, err := e.WithdrawFiatFunds(withdrawFiatRequest)
|
||||
if err != common.ErrFunctionNotSupported {
|
||||
t.Errorf("Expected '%v', recieved: '%v'", common.ErrFunctionNotSupported, err)
|
||||
t.Errorf("Expected '%v', received: '%v'", common.ErrFunctionNotSupported, err)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -385,7 +385,7 @@ func TestWithdrawInternationalBank(t *testing.T) {
|
||||
|
||||
_, err := e.WithdrawFiatFundsToInternationalBank(withdrawFiatRequest)
|
||||
if err != common.ErrFunctionNotSupported {
|
||||
t.Errorf("Expected '%v', recieved: '%v'", common.ErrFunctionNotSupported, err)
|
||||
t.Errorf("Expected '%v', received: '%v'", common.ErrFunctionNotSupported, err)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user