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:
Tobias Nießen 2018-07-17 02:38:34 +02:00
parent cf37945b12
commit 3504850a00
No known key found for this signature in database
GPG Key ID: 718207F8FD156B70

View File

@ -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.