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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 69 additions and 109 deletions

View file

@ -13,13 +13,12 @@ fn test_tmpdir() {
os.rm(tfile) or { panic(err) }
}
fn test_is_writable_folder() {
fn test_ensure_folder_is_writable() {
tmp := os.temp_dir()
f := os.is_writable_folder(tmp) or {
os.ensure_folder_is_writable(tmp) or {
eprintln('err: $err')
false
assert false
}
assert f
}
fn test_expand_tilde_to_home() {