Skip to content

Commit 8bdd921

Browse files
committed
buffer: remove unnecessary assignment in fromString
The assignment to the encoding variable has no effect. Refs: nodejs#29217
1 parent 0c56962 commit 8bdd921

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
return new FastBuffer();
477477
ops = encodingOps.utf8;
478-
encoding = undefined;
479478
} else {
480479
ops = getEncodingOps(encoding);
481480
if (ops === undefined)

0 commit comments

Comments
 (0)