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

os: vfmt most of os, add it to v test-cleancode

This commit is contained in:
Delyan Angelov
2020-12-16 11:02:36 +02:00
parent 525b521b4a
commit 88a8507dd8
14 changed files with 208 additions and 276 deletions

View File

@@ -24,9 +24,7 @@ fn testsuite_end() {
fn test_inode_file_type() {
filename := './test1.txt'
mut file := os.open_file(filename, 'w', 0o600) or {
return
}
mut file := os.open_file(filename, 'w', 0o600) or { return }
file.close()
mode := os.inode(filename)
os.rm(filename)
@@ -35,9 +33,7 @@ fn test_inode_file_type() {
fn test_inode_file_owner_permission() {
filename := './test2.txt'
mut file := os.open_file(filename, 'w', 0o600) or {
return
}
mut file := os.open_file(filename, 'w', 0o600) or { return }
file.close()
mode := os.inode(filename)
os.rm(filename)