checker: minor cleanup in check_or_last_stmt() (#13763)
parent
1734e72638
commit
3e41be1ff4
|
@ -1531,9 +1531,7 @@ fn (mut c Checker) check_or_last_stmt(stmt ast.Stmt, ret_type ast.Type, expr_ret
|
||||||
stmt.pos)
|
stmt.pos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else if stmt is ast.ExprStmt {
|
||||||
match stmt {
|
|
||||||
ast.ExprStmt {
|
|
||||||
match stmt.expr {
|
match stmt.expr {
|
||||||
ast.IfExpr {
|
ast.IfExpr {
|
||||||
for branch in stmt.expr.branches {
|
for branch in stmt.expr.branches {
|
||||||
|
@ -1565,9 +1563,6 @@ fn (mut c Checker) check_or_last_stmt(stmt ast.Stmt, ret_type ast.Type, expr_ret
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn (mut c Checker) selector_expr(mut node ast.SelectorExpr) ast.Type {
|
pub fn (mut c Checker) selector_expr(mut node ast.SelectorExpr) ast.Type {
|
||||||
|
|
Loading…
Reference in New Issue