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:
@ -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)) {
|
||||
|
Reference in New Issue
Block a user