mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
checker: a minor perf fix
This commit is contained in:
parent
d8d82a0be4
commit
11113e43e7
@ -3017,7 +3017,7 @@ pub fn (mut c Checker) if_expr(mut node ast.IfExpr) table.Type {
|
||||
return table.bool_type
|
||||
}
|
||||
|
||||
fn (c Checker) has_return(stmts []ast.Stmt) ?bool {
|
||||
fn (c &Checker) has_return(stmts []ast.Stmt) ?bool {
|
||||
// complexity means either more match or ifs
|
||||
mut has_complexity := false
|
||||
for s in stmts {
|
||||
|
Loading…
Reference in New Issue
Block a user