We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 96babb2 commit d047f8eCopy full SHA for d047f8e
lib/fs.js
@@ -1453,8 +1453,8 @@ const splitRootRe = isWindows ?
1453
/^(?:[a-zA-Z]:|[\\/]{2}[^\\/]+[\\/][^\\/]+)?[\\/]*/ :
1454
/^[/]*/;
1455
1456
-function encodeRealpathResult(result, options, err) {
1457
- if (!options || !options.encoding || options.encoding === 'utf8' || err)
+function encodeRealpathResult(result, options) {
+ if (!options || !options.encoding || options.encoding === 'utf8')
1458
return result;
1459
const asBuffer = Buffer.from(result);
1460
if (options.encoding === 'buffer') {
0 commit comments