1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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 }