Skip to content

Commit e7fcb65

Browse files
committed
Remove duplicate guard conditions
1 parent b48f81b commit e7fcb65

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pandas/_libs/src/parser/tokenizer.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1800,10 +1800,6 @@ static int _str_copy_decimal_str_c(char *dst, size_t dst_sz, const char *src,
18001800
// Copy leading sign (optional)
18011801
SAFE_CONSUME_NSPAN(d, de, s, 1, signs);
18021802

1803-
// Check that there is a first digit or decimal point.
1804-
if (!isdigit_ascii(*s) && *s != decimal)
1805-
return ERROR_NO_DIGITS;
1806-
18071803
// Copy integer part dropping `tsep`
18081804
while ((ret = str_consume_span(&d, de - d, &s, digits))) {
18091805
if (ret < 0)

0 commit comments

Comments
 (0)