Implement linter fixes
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user