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

@ -1,15 +1,15 @@
module os
pub fn mkdir(path string, params MkdirParams) !bool {
pub fn mkdir(path string, params MkdirParams) ! {
$if js_node {
if path == '.' {
return true
return
}
#$fs.mkdirSync(path.valueOf())
return true
return
} $else {
return false
return error('could not create folder')
}
}