Skip to content

Commit

Permalink
review comments incorporated
Browse files Browse the repository at this point in the history
  • Loading branch information
nitin-ebi committed Oct 23, 2023
1 parent 723b382 commit 65c790a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ public AbstractVariantSourceEntry(String fileId, String studyId, String[] second
this.fileId = fileId;
this.studyId = studyId;
if (secondaryAlternates != null) {
this.secondaryAlternates = Arrays.stream(secondaryAlternates)
.map(a->a.toUpperCase())
.collect(Collectors.toList())
.toArray(new String[0]);
setSecondaryAlternates(secondaryAlternates);
} else {
this.secondaryAlternates = new String[]{};
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ public FilterBuilder withVariantTypes(VariantType variantType) {

public FilterBuilder withAlternates(List<String> alternates) {
if (alternates != null && !alternates.isEmpty()) {
alternates = alternates.stream().map(a->a.toUpperCase()).collect(Collectors.toList());
filters.add(new VariantRepositoryAlternateFilter(alternates));
List<String> alternatesUppercase = alternates.stream().map(a->a.toUpperCase()).collect(Collectors.toList());
filters.add(new VariantRepositoryAlternateFilter(alternatesUppercase));
}
return this;
}
Expand Down

0 comments on commit 65c790a

Please sign in to comment.