Merge branch 'fix-dropped-errors' of github.com:alrs/cointop into alrs-fix-dropped-errors

* 'fix-dropped-errors' of github.com:alrs/cointop:
  Fix dropped errors
pull/45/head
Miguel Mota 5 years ago
commit 1aa81b8b06
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -125,7 +125,7 @@ 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, nil return data, err
} }
// CoinsList /coins/list // CoinsList /coins/list

@ -136,6 +136,9 @@ func (ct *Cointop) setPortfolioHoldings() error {
// read input field // read input field
b := make([]byte, 100) b := make([]byte, 100)
n, err := ct.Views.Input.Backing().Read(b) n, err := ct.Views.Input.Backing().Read(b)
if err != nil {
return err
}
if n == 0 { if n == 0 {
return nil return nil
} }

Loading…
Cancel
Save