mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Use unused cleanup_autogenerated_file
This commit is contained in:
parent
2bbad22248
commit
32d54e37f7
1 changed files with 1 additions and 8 deletions
|
@ -690,14 +690,7 @@ def cleanup_autogenerated_completions_in_directory(dir):
|
||||||
# Skip non .fish files
|
# Skip non .fish files
|
||||||
if not filename.endswith('.fish'): continue
|
if not filename.endswith('.fish'): continue
|
||||||
path = os.path.join(dir, filename)
|
path = os.path.join(dir, filename)
|
||||||
try:
|
cleanup_autogenerated_file(path)
|
||||||
if file_is_overwritable(path):
|
|
||||||
os.unlink(path)
|
|
||||||
except IOError:
|
|
||||||
pass
|
|
||||||
except OSError:
|
|
||||||
pass
|
|
||||||
|
|
||||||
except OSError as err:
|
except OSError as err:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue