From 509367b293b86dc5e6be9dcaa28af5850e12b742 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 29 Mar 2022 01:38:23 +0800 Subject: [PATCH] cgen: minor cleanup in expr_is_multi_return_call() (#13846) --- vlib/v/gen/c/cgen.v | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index f37e24da90..90323891f8 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -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) {