From afa7b4b72356a468f28f27eaa537728fa944d229 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Tue, 17 Jul 2018 02:38:34 +0200 Subject: [PATCH] buffer: remove superfluous assignment --- src/node_buffer.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/node_buffer.cc b/src/node_buffer.cc index 6e25889d6e4a25..858852e748fe03 100644 --- a/src/node_buffer.cc +++ b/src/node_buffer.cc @@ -612,7 +612,6 @@ void Fill(const FunctionCallbackInfo& 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.