buffer: remove superfluous assignment
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
cf37945b12
commit
3504850a00
@ -612,7 +612,6 @@ void Fill(const FunctionCallbackInfo<Value>& args) {
|
||||
memcpy(ts_obj_data + start, *str, MIN(str_length, fill_length));
|
||||
|
||||
} else {
|
||||
str_length = str_obj->Length();
|
||||
// Write initial String to Buffer, then use that memory to copy remainder
|
||||
// of string. Correct the string length for cases like HEX where less than
|
||||
// the total string length is written.
|
||||
|
Loading…
x
Reference in New Issue
Block a user