cgen: minor cleanup in expr_is_multi_return_call() (#13846)

pull/13855/head weekly.2022.13
yuyi 2022-03-29 01:38:23 +08:00 committed by GitHub
parent 476f19c090
commit 509367b293
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -3840,10 +3840,10 @@ fn (mut g Gen) concat_expr(node ast.ConcatExpr) {
[inline]
fn (g &Gen) expr_is_multi_return_call(expr ast.Expr) bool {
match expr {
ast.CallExpr { return g.table.sym(expr.return_type).kind == .multi_return }
else { return false }
if expr is ast.CallExpr {
return g.table.sym(expr.return_type).kind == .multi_return
}
return false
}
fn (mut g Gen) gen_optional_error(target_type ast.Type, expr ast.Expr) {