From 7608ec84f5269e8493f9ed9c7027f08e60fa3ce6 Mon Sep 17 00:00:00 2001 From: Sergey Golovin Date: Mon, 12 Feb 2018 19:39:43 +0300 Subject: [PATCH] fs: remove useless comments which duplicate names of variables --- lib/fs.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 92e8d4fe3e2d43..0b17885329ab92 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -375,7 +375,7 @@ function readFileAfterStat(err) { // our internal use. var size; if ((statValues[1/*mode*/] & S_IFMT) === S_IFREG) - size = context.size = statValues[8/*size*/]; + size = context.size = statValues[8]; else size = context.size = 0; @@ -490,7 +490,7 @@ fs.readFileSync = function(path, options) { // our internal use. var size; if ((statValues[1/*mode*/] & S_IFMT) === S_IFREG) - size = statValues[8/*size*/]; + size = statValues[8]; else size = 0; var pos = 0; @@ -1654,8 +1654,8 @@ fs.realpathSync = function realpathSync(p, options) { var linkTarget = null; var id; if (!isWindows) { - var dev = statValues[0/*dev*/].toString(32); - var ino = statValues[7/*ino*/].toString(32); + var dev = statValues[0].toString(32); + var ino = statValues[7].toString(32); id = `${dev}:${ino}`; if (seenLinks[id]) { linkTarget = seenLinks[id]; @@ -1793,8 +1793,8 @@ fs.realpath = function realpath(p, options, callback) { // dev/ino always return 0 on windows, so skip the check. let id; if (!isWindows) { - var dev = statValues[0/*ino*/].toString(32); - var ino = statValues[7/*ino*/].toString(32); + var dev = statValues[0].toString(32); + var ino = statValues[7].toString(32); id = `${dev}:${ino}`; if (seenLinks[id]) { return gotTarget(null, seenLinks[id], base);