Simplify indentation

This commit is contained in:
Alexandre Aubin 2021-04-05 20:45:51 +02:00
parent 28268c58eb
commit 93166741ee

View file

@ -793,7 +793,9 @@ class BackupManager:
self.size_details["apps"][app_key] = 0
for row in self.paths_to_backup:
if row["dest"] != "info.json":
if row["dest"] == "info.json":
continue
size = disk_usage(row["source"])
# Add size to apps details
@ -804,6 +806,7 @@ class BackupManager:
if row["dest"].startswith("apps/" + app_key):
self.size_details["apps"][app_key] += size
break
# OR Add size to the correct system element
elif category == "data" or category == "conf":
for system_key in self.system_return: