diff options
author | Sergey Golovin <golovim@gmail.com> | 2018-02-12 19:39:43 +0300 |
---|---|---|
committer | Matheus Marchini <matheus@sthima.com> | 2018-02-17 16:07:41 -0200 |
commit | 472cde603ef60aafcff00a4d09743758dfd0d928 (patch) | |
tree | 0c0ad8b41873c37b1f4e15719e95bdfec3897685 /lib | |
parent | 515634210593bbc143f962409ab29f8801e933d7 (diff) | |
download | android-node-v8-472cde603ef60aafcff00a4d09743758dfd0d928.tar.gz android-node-v8-472cde603ef60aafcff00a4d09743758dfd0d928.tar.bz2 android-node-v8-472cde603ef60aafcff00a4d09743758dfd0d928.zip |
fs: remove useless comments which duplicate names of variables
PR-URL: https://github.com/nodejs/node/pull/18739
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matheus Marchini <matheus@sthima.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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); |