Skip to content

Commit f627efa

Browse files
committed
Simplify expression
1 parent 54d1acc commit f627efa

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

snapraid-runner.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -333,10 +333,7 @@ def run():
333333
).format(**diff_results)
334334
)
335335

336-
if (
337-
config["snapraid"]["deletethreshold"] >= 0
338-
and diff_results["remove"] > config["snapraid"]["deletethreshold"]
339-
):
336+
if 0 <= config["snapraid"]["deletethreshold"] < diff_results["remove"]:
340337
logging.error(
341338
"Deleted files exceed delete threshold of {}, aborting".format(
342339
config["snapraid"]["deletethreshold"]

0 commit comments

Comments
 (0)