Skip to content

Commit

Permalink
fix list api
Browse files Browse the repository at this point in the history
  • Loading branch information
kkrik-es committed Oct 9, 2024
1 parent f785d0f commit 20f2781
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,8 @@ public final void addIgnoredField(IgnoredSourceFieldMapper.NameValue values) {
}

final void removeLastIgnoredField(String name) {
if (ignoredFieldValues.isEmpty() == false && ignoredFieldValues.getLast().name().equals(name)) {
ignoredFieldValues.removeLast();
if (ignoredFieldValues.isEmpty() == false && ignoredFieldValues.get(ignoredFieldValues.size() - 1).name().equals(name)) {
ignoredFieldValues.remove(ignoredFieldValues.size() - 1);
}
}

Expand Down

0 comments on commit 20f2781

Please sign in to comment.