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

os: cleanup APIs returning !bool to either return ! or bool (#16111)

This commit is contained in:
Delyan Angelov
2022-10-20 13:56:06 +03:00
committed by GitHub
parent ac63fa1b11
commit 2083e6b04c
13 changed files with 69 additions and 109 deletions

View File

@ -257,8 +257,8 @@ fn (mut a App) report_info() {
}
fn is_writable_dir(path string) bool {
res := os.is_writable_folder(path) or { false }
return res
os.ensure_folder_is_writable(path) or { return false }
return true
}
fn main() {