Skip to content

Commit 89c4737

Browse files
committed
Remove redundant check
1 parent 82ac541 commit 89c4737

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sfparse.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -884,9 +884,7 @@ static int parser_dispstring(sfparse_parser *sfp, sfparse_value *dest) {
884884

885885
break;
886886
case 3:
887-
if (utf8state != UTF8_ACCEPT) {
888-
return SFPARSE_ERR_PARSE;
889-
}
887+
assert(utf8state == UTF8_ACCEPT);
890888

891889
if (dest) {
892890
dest->type = SFPARSE_TYPE_DISPSTRING;

0 commit comments

Comments
 (0)