Skip to content

Commit

Permalink
fix duplicates.
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek committed Aug 2, 2024
1 parent 7a50409 commit 0866f57
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public Collection<FileResource> merge(final Collection<FileResource> resources)
.stream()
.map(Atlas::sources)
.flatMap(Collection::stream)
.distinct()
.collect(Collectors.toList())
)
.build();
Expand All @@ -88,6 +89,7 @@ public Collection<FileResource> merge(final Collection<FileResource> resources)
.stream()
.map(Model::overrides)
.flatMap(Collection::stream)
.distinct()
.sorted(FileResourceMergerDefault.OVERRIDE_COMPARATOR)
.collect(Collectors.toList())
);
Expand Down

0 comments on commit 0866f57

Please sign in to comment.