Implement linter fixes
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-02-23 22:08:47 +00:00
parent 253ecd1720
commit 24e5b18ded
3 changed files with 12 additions and 11 deletions

View File

@ -296,7 +296,7 @@ func (ynab *YNABImport) ImportTransferTransaction(context context.Context, payee
}
func GetAmount(inflow string, outflow string) (numeric.Numeric, error) {
in, err := numeric.Parse(inflow)
in, err := numeric.ParseCurrency(inflow)
if err != nil {
return in, fmt.Errorf("parse inflow: %w", err)
}
@ -306,7 +306,7 @@ func GetAmount(inflow string, outflow string) (numeric.Numeric, error) {
}
// if inflow is zero, use outflow
out, err := numeric.Parse("-" + outflow)
out, err := numeric.ParseCurrency("-" + outflow)
if err != nil {
return out, fmt.Errorf("parse outflow: %w", err)
}