Minor change

This commit is contained in:
gingerBill
2021-05-16 00:29:22 +01:00
parent 85e5be03d1
commit 24c89b3eee
+3
View File
@@ -10,6 +10,9 @@ file_to_stream :: proc(fd: Handle) -> (s: io.Stream) {
@(private)
error_to_io_error :: proc(ferr: Error) -> io.Error {
if ferr == nil {
return .None;
}
err, ok := ferr.(io.Error);
if !ok {
err = .Unknown;