Skip to content

Commit 4f6c9a8

Browse files
committed
fix: remove unnecessary branch
1 parent 06297b6 commit 4f6c9a8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pandas/_libs/parsers.pyx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1769,8 +1769,7 @@ cdef _try_uint64(parser_t *parser, int64_t col,
17691769
raise OverflowError("Overflow")
17701770
elif raise_on_invalid and error == ERROR_INVALID_CHARS:
17711771
raise ValueError("Number is not int")
1772-
elif not raise_on_invalid or error != ERROR_INVALID_CHARS:
1773-
return None
1772+
return None
17741773

17751774
if uint64_conflict(&state):
17761775
raise ValueError("Cannot convert to numerical dtype")
@@ -1840,8 +1839,7 @@ cdef _try_int64(parser_t *parser, int64_t col,
18401839
raise OverflowError("Overflow")
18411840
elif raise_on_invalid and error == ERROR_INVALID_CHARS:
18421841
raise ValueError("Number is not int")
1843-
elif not raise_on_invalid or error != ERROR_INVALID_CHARS:
1844-
return None, None
1842+
return None, None
18451843

18461844
return result, na_count
18471845

0 commit comments

Comments
 (0)