mirror of
https://github.com/miguelmota/cointop
synced 2024-11-14 18:12:57 +00:00
Return missing error
This commit is contained in:
parent
1aa81b8b06
commit
33297c7be4
@ -125,7 +125,11 @@ func (c *Client) SimpleSupportedVSCurrencies() (*types.SimpleSupportedVSCurrenci
|
|||||||
}
|
}
|
||||||
var data *types.SimpleSupportedVSCurrencies
|
var data *types.SimpleSupportedVSCurrencies
|
||||||
err = json.Unmarshal(resp, &data)
|
err = json.Unmarshal(resp, &data)
|
||||||
return data, err
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
|
return data, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// CoinsList /coins/list
|
// CoinsList /coins/list
|
||||||
|
Loading…
Reference in New Issue
Block a user