Skip to content

Commit

Permalink
filter lines without transaction id in google parser
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Jul 3, 2024
1 parent 3492cc9 commit 434ff47
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ private Collection<GoogleSale> parseInternal(Path p) throws IOException, ReportP
br.readLine(); //first line only contains the csv column headers

return br.lines()
.filter(l -> !l.startsWith(",")) //entries without a transaction id are discarded
.map(lastReadLine::copyAndReturn)
.map(this::splitWithCSVEscapes)
.map(splittedLine -> {
Expand Down

0 comments on commit 434ff47

Please sign in to comment.