diff options
author | Tobias Nießen <tniessen@tnie.de> | 2018-07-17 02:38:34 +0200 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2018-07-17 21:45:27 +0200 |
commit | 3504850a00d3d9e47ade7011ce6ec2cb047a853d (patch) | |
tree | 25a6a71210797dc523d6a3083d84f4d6d31ccbfa /src | |
parent | cf37945b121d23c044cd04ac79cd5ab312a34cbe (diff) | |
download | android-node-v8-3504850a00d3d9e47ade7011ce6ec2cb047a853d.tar.gz android-node-v8-3504850a00d3d9e47ade7011ce6ec2cb047a853d.tar.bz2 android-node-v8-3504850a00d3d9e47ade7011ce6ec2cb047a853d.zip |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/node_buffer.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 6e25889d6e..858852e748 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -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. |