Commit a3f891d4 authored by gsamain's avatar gsamain Committed by Xavier Thompson

Fix indentation issue when there is no need to check opt args

parent 2e0e9379
......@@ -1321,6 +1321,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if num_if:
opt_arg_guard.putln("if (this->%s != NULL) {" % opt_arg_name)
code.putln("}")
else:
code.decrease_indent()
for reifying_class_entry in entry.type.scope.reifying_entries:
reified_function_entry = reifying_class_entry.reified_entry
......@@ -1450,6 +1452,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
if num_optional_if > 0:
opt_arg_guard.putln("if (this->%s != NULL) {" % opt_arg_name)
code.putln("}") # The check for optional_args != NULL
else:
code.decrease_indent()
for _ in range(num_trylock):
code.putln("}")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment