Minor clean ups

This commit is contained in:
gingerBill
2024-07-23 16:09:15 +01:00
parent 24f9e2bbeb
commit 182454a1c0
2 changed files with 3 additions and 9 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ _read :: proc(f: ^File_Impl, p: []byte) -> (i64, Error) {
if errno != .NONE {
return -1, _get_platform_error(errno)
}
return i64(n), n == 0 ? io.Error.EOF : nil
return i64(n), io.Error.EOF if n == 0 else nil
}
_read_at :: proc(f: ^File_Impl, p: []byte, offset: i64) -> (i64, Error) {