Skip to content

Commit

Permalink
Update metafacture-csv/src/main/java/org/metafacture/csv/CsvEncoder.java
Browse files Browse the repository at this point in the history
Co-authored-by: Jens Wille <[email protected]>
  • Loading branch information
dr0i and blackwinter authored May 19, 2023
1 parent afeae76 commit b141850
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,7 @@ public void startRecord(final String identifier) {
public void endRecord() {
if (isFirstRecord) {
if (includeHeader) {
final List<String> uniqueHeader = header.stream().distinct().collect(Collectors.toList());
writeRow(uniqueHeader);
writeRow(header);
header.clear();
}
isFirstRecord = false;
Expand Down

0 comments on commit b141850

Please sign in to comment.