Skip to content

Commit

Permalink
Simplify expression
Browse files Browse the repository at this point in the history
  • Loading branch information
larssont committed Jun 24, 2020
1 parent 54d1acc commit f627efa
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions snapraid-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,10 +333,7 @@ def run():
).format(**diff_results)
)

if (
config["snapraid"]["deletethreshold"] >= 0
and diff_results["remove"] > config["snapraid"]["deletethreshold"]
):
if 0 <= config["snapraid"]["deletethreshold"] < diff_results["remove"]:
logging.error(
"Deleted files exceed delete threshold of {}, aborting".format(
config["snapraid"]["deletethreshold"]
Expand Down

0 comments on commit f627efa

Please sign in to comment.