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

encoding.csv: remove unnecessary IError() cast

This commit is contained in:
Alexander Medvednikov
2022-10-27 11:30:08 +03:00
parent c9934672c4
commit 098db89b85
2 changed files with 6 additions and 6 deletions

View File

@@ -10,7 +10,7 @@ mut:
fn (mut s StringReader) read(mut buf []u8) !int {
if s.place >= s.text.len {
return IError(io.Eof{})
return io.Eof{}
}
max_bytes := 100
end := if s.place + max_bytes >= s.text.len { s.text.len } else { s.place + max_bytes }