Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
Clean up permissions contains ignore case method
Browse files Browse the repository at this point in the history
  • Loading branch information
sdford committed Jul 12, 2018
1 parent 4681199 commit bfe4a95
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ private boolean doesHaveIntersectionIgnoreCase(Collection<String> co1, Collectio
.collect(Collectors.toSet());

return co2.stream()
.anyMatch(str -> co1LowerCase.contains(str.toLowerCase()));
.map(String::toLowerCase)
.anyMatch(co1LowerCase::contains);
}
}

0 comments on commit bfe4a95

Please sign in to comment.