Skip to content

Commit

Permalink
Update OutputSettings to use stream().toList()
Browse files Browse the repository at this point in the history
  • Loading branch information
julesjacobsen committed Feb 20, 2024
1 parent 3d68cb0 commit eec6847
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,7 @@ public Path makeOutputFilePath(Path vcfPath, OutputFormat outputFormat) {
* @since 13.0.0
*/
public List<Gene> filterGenesForOutput(List<Gene> genes) {
return applyOutputSettings(genes)
.collect(toUnmodifiableList());
return applyOutputSettings(genes).toList();
}

/**
Expand All @@ -184,7 +183,7 @@ public List<Gene> filterGenesForOutput(List<Gene> genes) {
public List<Gene> filterPassedGenesForOutput(List<Gene> genes) {
return applyOutputSettings(genes)
.filter(Gene::passedFilters)
.collect(toUnmodifiableList());
.toList();
}

/**
Expand Down

0 comments on commit eec6847

Please sign in to comment.