1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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