Skip to content

Commit

Permalink
Fix merge from main
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosdelest committed Dec 11, 2023
1 parent 07613ae commit d7d8d5e
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,7 @@ public void onIndexModule(IndexModule indexModule) {

@Override
public Function<String, Predicate<String>> getFieldFilter() {
List<Function<String, Predicate<String>>> items = filterPlugins(MapperPlugin.class).stream()
.map(p -> p.getFieldFilter())
.filter(p -> p.equals(NOOP_FIELD_FILTER) == false)
.toList();
List<Function<String, Predicate<String>>> items = filterPlugins(MapperPlugin.class).stream().map(p -> p.getFieldFilter()).toList();
if (items.size() > 1) {
throw new UnsupportedOperationException("Only the security MapperPlugin should override this");
} else if (items.size() == 1) {
Expand Down

0 comments on commit d7d8d5e

Please sign in to comment.