Skip to content

Commit

Permalink
Merge pull request #63 from noborus/skipempty
Browse files Browse the repository at this point in the history
Skip when empty read
  • Loading branch information
noborus authored Aug 2, 2019
2 parents c69fe12 + 69c0c87 commit 09ce81c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions database.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ func bulkPush(table *Table, input Reader, bulk []interface{}) ([]interface{}, er
if err != nil {
return bulk, err
}
// Skip when empty read.
if len(table.row) == 0 {
continue
}
bulk = append(bulk, table.row...)
table.count++
}
Expand Down

0 comments on commit 09ce81c

Please sign in to comment.