Skip to content

Commit

Permalink
fix typo (#364)
Browse files Browse the repository at this point in the history
* fix typo

* remove print
  • Loading branch information
horheynm authored Sep 11, 2023
1 parent 9d9b2ba commit 47b67c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sparsezoo/objects/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def get_file(self, file_name: str) -> Optional[File]:
for file in self.files:
if file is None:
continue
if file.name == os.path.basename(file_name):
if os.path.basename(file.name) == file_name:
return file
if isinstance(file, Directory):
file = file.get_file(file_name=file_name)
Expand Down

0 comments on commit 47b67c7

Please sign in to comment.