Skip to content

Commit 576f1ea

Browse files
tniessentargos
authored andcommitted
buffer: remove superfluous assignment
PR-URL: #21844 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Minwoo Jung <minwoo@nodesource.com> Reviewed-By: Yuta Hiroto <hello@hiroppy.me> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
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)