Skip to content

Fix condition in FileTree insert #181

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2025

Conversation

Pennycook
Copy link
Contributor

This is a holdover from a previous implementation, where the root tree was created by a call to insert. The newest code creates the root node explicitly when the FileTree object is created, and parent can never be None.

Related issues

N/A

Proposed changes

  • Remove unnecessary check of whether parent is None.

This is a holdover from a previous implementation, where the root tree was
created by a call to insert. The newest code creates the root node explicitly
when the FileTree object is created, and parent can never be None.

Signed-off-by: John Pennycook <[email protected]>
@Pennycook Pennycook added the bug Something isn't working label Apr 4, 2025
@Pennycook Pennycook added this to the 2.0.0 milestone Apr 4, 2025
@Pennycook Pennycook requested a review from laserkelvin April 4, 2025 14:15
Copy link
Contributor

@laserkelvin laserkelvin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@Pennycook Pennycook merged commit 566a0a6 into intel:main Apr 4, 2025
4 checks passed
@Pennycook Pennycook deleted the bugfix/filetree-insert branch April 4, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants