Skip to content

Commit 0568f75

Browse files
dayninMylesBorins
authored andcommitted
fs: remove useless comments which duplicate names of variables
PR-URL: #18739 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Matheus Marchini <[email protected]>
1 parent aa241ed commit 0568f75

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/fs.js

+6-6
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ function readFileAfterStat(err) {
460460
// our internal use.
461461
var size;
462462
if ((statValues[1/*mode*/] & S_IFMT) === S_IFREG)
463-
size = context.size = statValues[8/*size*/];
463+
size = context.size = statValues[8];
464464
else
465465
size = context.size = 0;
466466

@@ -576,7 +576,7 @@ fs.readFileSync = function(path, options) {
576576
// our internal use.
577577
var size;
578578
if ((statValues[1/*mode*/] & S_IFMT) === S_IFREG)
579-
size = statValues[8/*size*/];
579+
size = statValues[8];
580580
else
581581
size = 0;
582582
var pos = 0;
@@ -1700,8 +1700,8 @@ fs.realpathSync = function realpathSync(p, options) {
17001700
var linkTarget = null;
17011701
var id;
17021702
if (!isWindows) {
1703-
var dev = statValues[0/*dev*/].toString(32);
1704-
var ino = statValues[7/*ino*/].toString(32);
1703+
var dev = statValues[0].toString(32);
1704+
var ino = statValues[7].toString(32);
17051705
id = `${dev}:${ino}`;
17061706
if (seenLinks[id]) {
17071707
linkTarget = seenLinks[id];
@@ -1837,8 +1837,8 @@ fs.realpath = function realpath(p, options, callback) {
18371837
// dev/ino always return 0 on windows, so skip the check.
18381838
let id;
18391839
if (!isWindows) {
1840-
var dev = statValues[0/*ino*/].toString(32);
1841-
var ino = statValues[7/*ino*/].toString(32);
1840+
var dev = statValues[0].toString(32);
1841+
var ino = statValues[7].toString(32);
18421842
id = `${dev}:${ino}`;
18431843
if (seenLinks[id]) {
18441844
return gotTarget(null, seenLinks[id], base);

0 commit comments

Comments
 (0)