mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00
buffer: remove unnecessary assignment in fromString
The assignment to the encoding variable has no effect. Refs: https://github.com/nodejs/node/pull/29217 PR-URL: https://github.com/nodejs/node/pull/50199 Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
765339a32c
commit
e45e73b335
1 changed files with 0 additions and 1 deletions
|
@ -475,7 +475,6 @@ function fromString(string, encoding) {
|
|||
if (string.length === 0)
|
||||
return new FastBuffer();
|
||||
ops = encodingOps.utf8;
|
||||
encoding = undefined;
|
||||
} else {
|
||||
ops = getEncodingOps(encoding);
|
||||
if (ops === undefined)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue