Commit e306804f authored by gsamain's avatar gsamain

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

parent 0d58bec6
......@@ -1248,6 +1248,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
......@@ -1377,6 +1379,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