Skip to content

Commit ac9806f

Browse files
GitHKAndrei Neagumergify[bot]
authored
♻️ removed unrequited assert (#7754)
Co-authored-by: Andrei Neagu <[email protected]> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
1 parent da1e85f commit ac9806f

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/service-library/src/servicelib/archiving_utils/_prunable_folder.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ def prune(self, exclude: set[Path]) -> None:
3939
"""
4040
Deletes all paths in folder skipping the exclude set
4141
"""
42-
assert all(self.basedir in p.parents for p in exclude) # nosec
4342

4443
after_relpaths = {p.relative_to(self.basedir) for p in exclude}
4544
to_delete = self.before_relpaths.difference(after_relpaths)

0 commit comments

Comments
 (0)