Skip to content

Commit

Permalink
chore: rename variable with clear name
Browse files Browse the repository at this point in the history
  • Loading branch information
aldanchenko committed Aug 1, 2022
1 parent 09d1266 commit 4fb7eae
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public FilterableTreeItem(T value) {
super(value);

filteredList.predicateProperty().bind(Bindings.createObjectBinding(() -> {
Predicate<FilterableTreeItem<T>> p = child -> {
Predicate<FilterableTreeItem<T>> treeItemPredicate = child -> {
// Set the predicate of child items to force filtering
if (child instanceof FilterableTreeItem) {
FilterableTreeItem<T> filterableChild = (FilterableTreeItem<T>) child;
Expand All @@ -77,7 +77,7 @@ public FilterableTreeItem(T value) {
// Otherwise ask the TreeItemPredicate
return predicate.get().test(this, child.getValue());
};
return p;
return treeItemPredicate;
}, predicate));

Bindings.bindContent(getChildren(), getBackingList());
Expand Down

0 comments on commit 4fb7eae

Please sign in to comment.