1
0
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:
Alexander Medvednikov 2020-08-10 23:59:38 +02:00
parent d8d82a0be4
commit 11113e43e7

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 {