Skip to content

Commit 9cd68b9

Browse files
tniessentargos
authored andcommitted
buffer: remove unnecessary assignment in fromString
The assignment to the encoding variable has no effect. Refs: #29217 PR-URL: #50199 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 317e447 commit 9cd68b9

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

‎lib/buffer.js‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,6 @@ function fromString(string, encoding) {
475475
if(string.length===0)
476476
returnnewFastBuffer();
477477
ops=encodingOps.utf8;
478-
encoding=undefined;
479478
}else{
480479
ops=getEncodingOps(encoding);
481480
if(ops===undefined)

0 commit comments

Comments
 (0)