We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d1a221 commit bb0fe4eCopy full SHA for bb0fe4e
_tools/ruby_h_to_go/lib/ruby_h_to_go/function_definition.rb
@@ -121,14 +121,12 @@ def generate_go_content
121
if cast_func == ""
122
go_function_lines << call_c_method
123
go_function_lines.push(*after_call_function_lines)
124
- else
125
- if after_call_function_lines.empty?
126
- go_function_lines << "return #{cast_func}(#{call_c_method})"
+ elsif after_call_function_lines.empty?
+ go_function_lines << "return #{cast_func}(#{call_c_method})"
127
else
128
go_function_lines << "ret := #{cast_func}(#{call_c_method})"
129
130
go_function_lines << "return ret"
131
- end
132
end
133
134
go_function_lines << "}"
0 commit comments