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 b6de6a7

Browse filesBrowse files
ccoxwellMylesBorins
authored andcommitted
lib: named anonymous functions
PR-URL: #20408 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Matheus Marchini <matheus@sthima.com>
1 parent 1b9c40c commit b6de6a7
Copy full SHA for b6de6a7

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎lib/fs.js‎

Copy file name to clipboardExpand all lines: lib/fs.js
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ fs.readFile = function(path, options, callback) {
245245
req.oncomplete = readFileAfterOpen;
246246

247247
if (context.isUserFd) {
248-
process.nextTick(function() {
248+
process.nextTick(function tick() {
249249
req.oncomplete(null, path);
250250
});
251251
return;
@@ -302,7 +302,7 @@ ReadFileContext.prototype.close = function(err) {
302302
this.err = err;
303303

304304
if (this.isUserFd) {
305-
process.nextTick(function() {
305+
process.nextTick(function tick() {
306306
req.oncomplete(null);
307307
});
308308
return;
@@ -552,7 +552,7 @@ fs.read = function(fd, buffer, offset, length, position, callback) {
552552
length |= 0;
553553

554554
if (length === 0) {
555-
return process.nextTick(function() {
555+
return process.nextTick(function tick() {
556556
callback && callback(null, 0, buffer);
557557
});
558558
}
@@ -1217,7 +1217,7 @@ function writeAll(fd, isUserFd, buffer, offset, length, position, callback) {
12171217
if (isUserFd) {
12181218
callback(writeErr);
12191219
} else {
1220-
fs.close(fd, function() {
1220+
fs.close(fd, function close() {
12211221
callback(writeErr);
12221222
});
12231223
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.