checker: minor cleanup in check_or_expr() (#9635)

pull/9642/head
yuyi 2021-04-08 13:21:42 +08:00 committed by GitHub
parent 4f6dde4ac2
commit e654d61541
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 1 deletions

View File

@ -2397,7 +2397,6 @@ pub fn (mut c Checker) check_or_expr(or_expr ast.OrExpr, ret_type ast.Type, expr
if ret_type != ast.void_type {
// x := f() or {}
c.error('assignment requires a non empty `or {}` block', or_expr.pos)
return
}
// allow `f() or {}`
return