Skip to content

Commit

Permalink
cleanup more in lambda_expr.v
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Jan 9, 2024
1 parent e0c7ba6 commit cf3916d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/lambda_expr.v
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn (mut c Checker) lambda_expr(mut node ast.LambdaExpr, exp_typ ast.Type) as

mut stmts := []ast.Stmt{}
mut has_return := false
if return_type.clear_flags(.option, .result) == ast.void_type {
if return_type.clear_option_and_result() == ast.void_type {
stmts << ast.ExprStmt{
pos: node.pos
expr: node.expr
Expand Down

0 comments on commit cf3916d

Please sign in to comment.