Skip to content
Snippets Groups Projects
Commit 151f1cd6 authored by Tim Jaacks's avatar Tim Jaacks
Browse files

Refactoring: remove redundant if

See for reference:
https://docs.sourcery.ai/Reference/Python/Default-Rules/remove-redundant-if/
parent 872ec6d9
No related branches found
No related tags found
1 merge request!300Refactoring: remove redundant if
Pipeline #72628 skipped with stage
...@@ -15,7 +15,6 @@ rule_settings: ...@@ -15,7 +15,6 @@ rule_settings:
- use-fstring-for-formatting - use-fstring-for-formatting
- replace-interpolation-with-fstring - replace-interpolation-with-fstring
- use-fstring-for-concatenation - use-fstring-for-concatenation
- remove-redundant-if
- low-code-quality - low-code-quality
- for-append-to-extend - for-append-to-extend
- raise-specific-error - raise-specific-error
......
...@@ -281,12 +281,11 @@ def main(args): ...@@ -281,12 +281,11 @@ def main(args):
in_started_state += 1 in_started_state += 1
continue continue
if status == "finished": print("Downloading export for {}".format(project))
print("Downloading export for {}".format(project)) exportpath = p[project]["exportpath"]
exportpath = p[project]["exportpath"] with open(exportpath, "w+b") as f:
with open(exportpath, "w+b") as f: f.write(export.download())
f.write(export.download()) p[project]["downloaded"] = True
p[project]["downloaded"] = True
if in_started_state == 0: if in_started_state == 0:
break break
print("Waiting for exports to be finished ({})".format(in_started_state)) print("Waiting for exports to be finished ({})".format(in_started_state))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment