This commit is contained in:
bel
2023-10-24 21:09:02 -06:00
parent 21fed9437f
commit 5d0e7c9a3d
9 changed files with 42 additions and 40 deletions

View File

@@ -106,7 +106,7 @@ func _readTransaction(r *bufio.Reader) (transaction, error) {
}
for {
name, value, currency, err := readTransactionAccount(r)
name, value, currency, err := readTransactionName(r)
if name != "" {
if currency == "" {
result.payee = name
@@ -176,7 +176,7 @@ func _readTransactionLine(r *bufio.Reader) ([]byte, error) {
return b2[:n], err
}
func readTransactionAccount(r *bufio.Reader) (string, float64, string, error) {
func readTransactionName(r *bufio.Reader) (string, float64, string, error) {
line, err := readTransactionLine(r)
if err != nil {
return "", 0, "", err