to Name
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user