Skip to content

Commit

Permalink
reuse yearIncludedStructuralElement
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathrin-Huber committed May 20, 2021
1 parent 0651fca commit 97a9560
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,9 +401,8 @@ private String createLinkStructureAndCopyDates(Process process, URI yearMetadata
year = MetadataEditor.getMetadataValue(yearFileYearIncludedStructuralElement, FIELD_TITLE);
}
IncludedStructuralElement processYearIncludedStructuralElement = years.computeIfAbsent(year, theYear -> {
IncludedStructuralElement yearIncludedStructuralElement = new IncludedStructuralElement();
MetadataEditor.writeMetadataEntry(yearIncludedStructuralElement, yearSimpleMetadataView, theYear);
return yearIncludedStructuralElement;
MetadataEditor.writeMetadataEntry(yearFileYearIncludedStructuralElement, yearSimpleMetadataView, theYear);
return yearFileYearIncludedStructuralElement;
});

createLinkStructureAndCopyMonths(process, metaFileYearIncludedStructuralElement,
Expand Down

0 comments on commit 97a9560

Please sign in to comment.