Skip to content

Commit 4c41ad3

Browse files
committed
Remove check
1 parent 8947f09 commit 4c41ad3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/json/json_encoder.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -795,9 +795,7 @@ zend_result php_json_escape_string(
795795
}
796796
} while (len);
797797

798-
if (pos) {
799-
php_json_append(buf, s, pos);
800-
}
798+
php_json_append(buf, s, pos);
801799

802800
ZEND_ASSERT(buf->s);
803801
smart_str_appendc(buf, '"');

0 commit comments

Comments
 (0)