Skip to content

Commit

Permalink
cgen: cleanup generated thread wait code (#12048)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Oct 3, 2021
1 parent 9145cd6 commit 10caf4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vlib/v/gen/c/cgen.v
Expand Up @@ -6627,8 +6627,6 @@ fn (mut g Gen) go_expr(node ast.GoExpr) {
g.gowrappers.writeln('\t$s_ret_typ ret = *ret_ptr;')
g.gowrappers.writeln('\tfree(ret_ptr);')
g.gowrappers.writeln('\treturn ret;')
} else {
g.gowrappers.writeln('\treturn;')
}
g.gowrappers.writeln('}')
g.waiter_fns << waiter_fn_name
Expand Down

0 comments on commit 10caf4a

Please sign in to comment.