checker: a minor perf fix
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
|
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
|
// complexity means either more match or ifs
|
||||||
mut has_complexity := false
|
mut has_complexity := false
|
||||||
for s in stmts {
|
for s in stmts {
|
||||||
|
|
Loading…
Reference in New Issue