mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: minor cleanup in expr_is_multi_return_call() (#13846)
This commit is contained in:
parent
476f19c090
commit
509367b293
@ -3840,10 +3840,10 @@ fn (mut g Gen) concat_expr(node ast.ConcatExpr) {
|
|||||||
|
|
||||||
[inline]
|
[inline]
|
||||||
fn (g &Gen) expr_is_multi_return_call(expr ast.Expr) bool {
|
fn (g &Gen) expr_is_multi_return_call(expr ast.Expr) bool {
|
||||||
match expr {
|
if expr is ast.CallExpr {
|
||||||
ast.CallExpr { return g.table.sym(expr.return_type).kind == .multi_return }
|
return g.table.sym(expr.return_type).kind == .multi_return
|
||||||
else { return false }
|
|
||||||
}
|
}
|
||||||
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
fn (mut g Gen) gen_optional_error(target_type ast.Type, expr ast.Expr) {
|
fn (mut g Gen) gen_optional_error(target_type ast.Type, expr ast.Expr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user