Skip to content

Commit

Permalink
Code quality
Browse files Browse the repository at this point in the history
  • Loading branch information
zwimer committed Sep 25, 2024
1 parent e9c820b commit 9ef85ae
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions delayed_rm/delayed_rm.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import os


__version__ = "2.9.0"
__version__ = "2.9.1"


#
Expand Down Expand Up @@ -214,12 +214,7 @@ def delayed_rm_raw(delay: int, log: bool, r: bool, f: bool, paths: list[Path]) -
if r or f or paths:
_eprint("--log may not be used with other arguments")
return False
if log_f.exists():
with log_f.open("r") as file:
data: str = file.read()
print(data + f"Log file: {log_f}")
else:
print("Log is empty")
print(f"{log_f.read_text()}Log file: {log_f}" if log_f.exists() else "Log is empty")
return True
if not paths:
_eprint("nothing to remove")
Expand Down

0 comments on commit 9ef85ae

Please sign in to comment.