mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
all: remove unnecessary IError() casts
This commit is contained in:
parent
daa2f90023
commit
c6158e4519
28 changed files with 86 additions and 88 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue