Skip to content

Commit

Permalink
Removed unused boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorthiz committed Sep 1, 2024
1 parent 3a242b1 commit e985a12
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ export interface TreeNodeDisplay {
fullPath: string;
type: NodeType;
fileName: string;
isOpen: boolean;
storeId: typeof FILE_SYSTEM_TYPE_LOCAL | typeof FILE_SYSTEM_TYPE_KAITAI;
depth: number;
}
Expand Down Expand Up @@ -49,7 +48,7 @@ export class FileSystemVisitor {
const newNode = this.mapToNewNode(fsItem);
this.visibleFsItemsNew.push(newNode);

if (fsItem.type === ITEM_MODE_DIRECTORY && newNode.isOpen) {
if (fsItem.type === ITEM_MODE_DIRECTORY && newNode.type === OPEN_FOLDER) {
Object.entries(fsItem.children || {})
.forEach(([key, child]) => {
child.fn = key;
Expand All @@ -68,7 +67,6 @@ export class FileSystemVisitor {
storeId: fsItem.fsType,
fullPath: fullPath,
fileName: fsItem.fn,
isOpen: isOpen,
depth: this.currentPath.length - 1
};
}
Expand Down

0 comments on commit e985a12

Please sign in to comment.