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