Skip to content

Commit

Permalink
Small fix to remove invalid empty line after function descriptor (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeSchulze authored Feb 5, 2023
1 parent 0b8e2a4 commit 41ff383
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/gdUnit4/src/core/GdFunctionDoubler.gd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func double(func_descriptor :GdFunctionDescriptor) -> PackedStringArray:
var constructor := "func _init(%s):\n super(%s)\n pass\n" % [constructor_args, ", ".join(arg_names)]
return constructor.split("\n")

var double := func_signature + "\n"
var double := func_signature
var func_template := get_template(func_descriptor.return_type(), is_vararg).trim_prefix("\n")
# fix to unix format, this is need when the template is edited under windows than the template is stored with \r\n
func_template = GdScriptParser.to_unix_format(func_template)
Expand Down

0 comments on commit 41ff383

Please sign in to comment.