Skip to content

Commit d047f8e

Browse files
JacksonTianitaloacasas
authored andcommitted
fs: remove unused parameter for encodeRealpathResult
The third parameter `err` is not used anywhere. PR-URL: #10862 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Brian White <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 96babb2 commit d047f8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/fs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1453,8 +1453,8 @@ const splitRootRe = isWindows ?
14531453
/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/][^\\/]+)?[\\/]*/ :
14541454
/^[/]*/;
14551455

1456-
function encodeRealpathResult(result, options, err) {
1457-
if (!options || !options.encoding || options.encoding === 'utf8' || err)
1456+
function encodeRealpathResult(result, options) {
1457+
if (!options || !options.encoding || options.encoding === 'utf8')
14581458
return result;
14591459
const asBuffer = Buffer.from(result);
14601460
if (options.encoding === 'buffer') {

0 commit comments

Comments
 (0)