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

cgen: fix fn()? return

This commit is contained in:
yuyi
2020-06-29 17:02:40 +08:00
committed by GitHub
parent 1ba5996404
commit c588bdee5a
2 changed files with 6 additions and 1 deletions

View File

@ -667,7 +667,7 @@ pub fn rmdir_recursive(path string) {
pub fn rmdir_all(path string) ? {
mut ret_err := ''
items := os.ls(path) or {
return none
return error(err)
}
for item in items {
if os.is_dir(os.join_path(path, item)) {