Skip to content

Commit 576f1ea

Browse files
tniessentargos
authored andcommitted
buffer: remove superfluous assignment
PR-URL: #21844 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Yuta Hiroto <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 581390c commit 576f1ea

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/node_buffer.cc

-1
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ void Fill(const FunctionCallbackInfo<Value>& args) {
612612
memcpy(ts_obj_data + start, *str, MIN(str_length, fill_length));
613613

614614
} else {
615-
str_length = str_obj->Length();
616615
// Write initial String to Buffer, then use that memory to copy remainder
617616
// of string. Correct the string length for cases like HEX where less than
618617
// the total string length is written.

0 commit comments

Comments
 (0)