Skip to content

Commit

Permalink
removed redundant rmtree
Browse files Browse the repository at this point in the history
  • Loading branch information
maxme1 committed Jul 18, 2022
1 parent 2f637da commit 622fe57
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tarn/cache/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ def _mirror_to_storage(self, source: Path, destination: Path):
os.remove(file)
to_read_only(target, self.permissions, self.group)

shutil.rmtree(source)

def _cleanup_corrupted(self, folder, digest):
message = f'Corrupted storage at {self.root} for key {digest}. Cleaning up.'
warnings.warn(message, RuntimeWarning)
Expand Down

0 comments on commit 622fe57

Please sign in to comment.