mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: remove unnecessary IError() casts
This commit is contained in:
@ -27,7 +27,7 @@ pub fn read(bytes_needed int) ![]u8 {
|
||||
rbytes := unsafe { getrandom(batch_size, buffer + bytes_read) }
|
||||
if rbytes == -1 {
|
||||
unsafe { free(buffer) }
|
||||
return IError(&ReadError{})
|
||||
return &ReadError{}
|
||||
}
|
||||
bytes_read += rbytes
|
||||
}
|
||||
|
Reference in New Issue
Block a user