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:
Adrian Gallagher
2019-01-31 14:53:24 +11:00
committed by GitHub
parent e182248387
commit 291e404a4a
85 changed files with 306 additions and 393 deletions

View File

@@ -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
}

View File

@@ -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)
}
}