Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4601bfd

Browse filesBrowse files
dayninMylesBorins
authored andcommitted
fs: remove useless comments which duplicate names of variables
PR-URL: #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>
1 parent 11dea28 commit 4601bfd
Copy full SHA for 4601bfd

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Open diff view settings
Collapse file

‎lib/fs.js‎

Copy file name to clipboardExpand all lines: lib/fs.js
+6-6Lines changed: 6 additions & 6 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.