mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
csv: fix empty line error
This commit is contained in:
@ -103,6 +103,9 @@ fn (r mut Reader) read_record() ?[]string {
|
||||
l := r.read_line() or {
|
||||
return error(err)
|
||||
}
|
||||
if l.len <= 0 {
|
||||
continue
|
||||
}
|
||||
line = l
|
||||
// skip commented lines
|
||||
if line[0] == r.comment {
|
||||
|
Reference in New Issue
Block a user