Skip to content

Commit

Permalink
fix duplicates. (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
portlek authored Aug 2, 2024
1 parent 7a50409 commit 74a18ed
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 74a18ed

Please sign in to comment.