Skip to content
Snippets Groups Projects
Commit 021df27d authored by George Marchment's avatar George Marchment
Browse files

Update -> forgot something

parent 3e4fe101
No related branches found
No related tags found
No related merge requests found
Pipeline #14460 failed with stage
in 2 minutes and 11 seconds
...@@ -45,7 +45,7 @@ class Code: ...@@ -45,7 +45,7 @@ class Code:
start, end = match.span(1) start, end = match.span(1)
extracted_condition = get_code_until_parenthese_count(code=code[end:], val=-1) extracted_condition = get_code_until_parenthese_count(code=code[end:], val=-1)
condition = extracted_condition[:-1] condition = extracted_condition[:-1]
body = extarcted.replace(extracted_condition, "") body = extarcted.replace(extracted_condition.strip(), "")
new = f"if ({condition}) {{\n{body}\n}}\n" new = f"if ({condition}) {{\n{body}\n}}\n"
to_replace.append((all, new)) to_replace.append((all, new))
for r in to_replace: for r in to_replace:
......
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