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

checker: check unused last expression in if (fix #16084) (#16088)

This commit is contained in:
yuyi
2022-10-17 23:15:01 +08:00
committed by GitHub
parent 43b9a716c5
commit 556244576d
4 changed files with 41 additions and 3 deletions

View File

@@ -55,9 +55,6 @@ fn open(f string) voidptr {
// locking it
fd := C.CreateFileW(f_wide, C.GENERIC_READ | C.GENERIC_WRITE, 0, 0, C.OPEN_ALWAYS,
C.FILE_ATTRIBUTE_NORMAL, 0)
if fd == C.INVALID_HANDLE_VALUE {
fd == -1
}
return fd
}