fix: make it even simpler

This commit is contained in:
Simon Knott 2024-11-28 12:34:16 +01:00
parent a8235e9ee5
commit 069fdd99d3
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -328,8 +328,6 @@ function indexTree<T extends TreeItem>(
let lastItem: T | null = null;
const appendChildren = (parent: T, depth: number) => {
if (isVisible && !isVisible(parent))
return;
for (const item of parent.children as T[]) {
if (isVisible && !isVisible(item))
continue;