Merge branch 'alrs-fix-dropped-errors'

* alrs-fix-dropped-errors:
  Return missing error
  Fix dropped errors
pull/45/head
Miguel Mota 5 years ago
commit 7f2fad6105
No known key found for this signature in database
GPG Key ID: 67EC1161588A00F9

@ -125,6 +125,10 @@ func (c *Client) SimpleSupportedVSCurrencies() (*types.SimpleSupportedVSCurrenci
}
var data *types.SimpleSupportedVSCurrencies
err = json.Unmarshal(resp, &data)
if err != nil {
return nil, err
}
return data, nil
}

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

Loading…
Cancel
Save