Skip to content

Commit 8056005

Browse files
committed
[terminology.py] Remove Redundant Cache File Deletion
1 parent 082ecaf commit 8056005

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

odml/terminology.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ def cache_load(url, replace_file=False):
4141
if not os.path.exists(cache_dir):
4242
raise
4343
cache_file = os.path.join(cache_dir, filename)
44-
if replace_file and os.path.exists(cache_file):
45-
os.remove(cache_file)
4644
if not os.path.exists(cache_file) \
4745
or replace_file \
4846
or datetime.datetime.fromtimestamp(os.path.getmtime(cache_file)) < \

0 commit comments

Comments
 (0)