Skip to content

Commit 19f636f

Browse files
committed
remove unnecessary value_length
1 parent fb16b2d commit 19f636f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void MakeUtf8String(Isolate* isolate,
127127

128128
size_t actual_length =
129129
simdutf::convert_utf16_to_utf8(const_char16, value_length, target->out());
130-
if (actual_length == 0 && value_length > 0) {
130+
if (actual_length == 0) {
131131
actual_length =
132132
string->WriteUtf8V2(isolate,
133133
target->out(),

0 commit comments

Comments
 (0)