mirror of
https://github.com/vlang/v.git
synced 2025-09-15 23:42:28 +03:00
os: cleanup APIs returning !bool
to either return !
or bool
(#16111)
This commit is contained in:
parent
ac63fa1b11
commit
2083e6b04c
13 changed files with 69 additions and 109 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue