gen: minor cleanup in gen_expr_to_string() (#7026)

pull/7037/head
yuyi 2020-11-30 15:16:50 +08:00 committed by GitHub
parent 9487578c0c
commit f7cc3d3718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -4637,7 +4637,6 @@ fn (mut g Gen) gen_expr_to_string(expr ast.Expr, etype table.Type) ?bool {
g.write(')')
} else if typ == table.string_type {
g.expr(expr)
return true
} else if sym.kind == .enum_ {
is_var := match expr {
ast.SelectorExpr, ast.Ident { true }