Better lvar name.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1461307 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78d7055f71
commit
4c530ac40d
|
@ -251,9 +251,9 @@ public class CSVParser implements Iterable<CSVRecord> {
|
|||
String[] header = null;
|
||||
if (format.getHeader().length == 0) {
|
||||
// read the header from the first line of the file
|
||||
final CSVRecord rec = nextRecord();
|
||||
if (rec != null) {
|
||||
header = rec.values();
|
||||
final CSVRecord record = nextRecord();
|
||||
if (record != null) {
|
||||
header = record.values();
|
||||
}
|
||||
} else {
|
||||
header = format.getHeader();
|
||||
|
|
Loading…
Reference in New Issue