Skip to content

Commit

Permalink
Moved comment
Browse files Browse the repository at this point in the history
  • Loading branch information
aquilax committed Dec 20, 2015
1 parent e82e501 commit ab1c23f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func ParseLedger(ledgerReader io.Reader) (generalLedger []*Transaction, err erro
var lineCount int
for scanner.Scan() {
line = scanner.Text()
// remove heading and tailing space from the line
trimmedLine := strings.Trim(line, whitespace)
lineCount++
if strings.HasPrefix(line, ";") {
Expand Down Expand Up @@ -53,7 +54,6 @@ func ParseLedger(ledgerReader io.Reader) (generalLedger []*Transaction, err erro
trans = &Transaction{Payee: payeeString, Date: transDate}
} else {
var accChange Account
// remove heading and tailing space from the line
lineSplit := strings.Split(trimmedLine, " ")
nonEmptyWords := []string{}
for _, word := range lineSplit {
Expand Down

0 comments on commit ab1c23f

Please sign in to comment.