Skip to content

Commit e2cefe7

Browse files
committed
address @charles-cowart comments
1 parent 0ae8c76 commit e2cefe7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

qiita_db/util.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,10 @@ def quick_mounts_purge():
902902
903903
Notes
904904
-----
905-
Currenlty we delete anything older than 30 days that is not linked
905+
Currently we delete anything older than 30 days that is not linked
906906
to the database. This number is intentionally hardcoded in the code.
907-
At time of writting this number seem high but keeping it this way to be
908-
safe. In the future, if needed, it can be changes.
907+
At the time of this writing this number seem high but keeping it
908+
this way to be safe. In the future, if needed, it can be changed.
909909
"""
910910
with qdb.sql_connection.TRN:
911911
main_sql = """SELECT data_directory_id FROM qiita.artifact_type at
@@ -958,9 +958,8 @@ def quick_mounts_purge():
958958
report.append('----------------------')
959959

960960
for td in list(to_delete):
961-
if not exists(td):
962-
continue
963-
rmtree(td)
961+
if exists(td):
962+
rmtree(td)
964963

965964
return '\n'.join(report)
966965

0 commit comments

Comments
 (0)