checker: a minor perf fix

pull/6105/head
Alexander Medvednikov 2020-08-10 23:59:38 +02:00
parent d8d82a0be4
commit 11113e43e7
1 changed files with 1 additions and 1 deletions

View File

@ -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 {