Skip to content

Commit 46f5fef

Browse files
committed
Lexer is never null
1 parent b797c6d commit 46f5fef

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

src/main/java/org/apache/commons/csv/CSVParser.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,9 +451,7 @@ private void addRecordValue(final boolean lastRecord) {
451451
*/
452452
@Override
453453
public void close() throws IOException {
454-
if (lexer != null) {
455-
lexer.close();
456-
}
454+
lexer.close();
457455
}
458456

459457
private Map<String, Integer> createEmptyHeaderMap() {

0 commit comments

Comments
 (0)