2
0
mirror of https://github.com/miguelmota/cointop synced 2024-11-14 18:12:57 +00:00

Return missing error

This commit is contained in:
Miguel Mota 2019-09-15 00:12:26 -07:00
parent 1aa81b8b06
commit 33297c7be4
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

View File

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