diff options
author | Carrie Coxwell <carrie.coxwell@gmail.com> | 2018-04-30 02:08:20 -0500 |
---|---|---|
committer | Matheus Marchini <matheus@sthima.com> | 2018-05-03 15:34:03 -0300 |
commit | 0930d7ec05d8a0d29d7562f881ca67a959ec18a4 (patch) | |
tree | a240a41131dfd87b5c2f6c3b04627a3743d29922 /lib | |
parent | 4d8806fc407a127833d483ccd1cc8b35f33528c8 (diff) | |
download | android-node-v8-0930d7ec05d8a0d29d7562f881ca67a959ec18a4.tar.gz android-node-v8-0930d7ec05d8a0d29d7562f881ca67a959ec18a4.tar.bz2 android-node-v8-0930d7ec05d8a0d29d7562f881ca67a959ec18a4.zip |
lib: named anonymous functions
PR-URL: https://github.com/nodejs/node/pull/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>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/fs.js | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -247,7 +247,7 @@ fs.readFile = function(path, options, callback) { req.oncomplete = readFileAfterOpen; if (context.isUserFd) { - process.nextTick(function() { + process.nextTick(function tick() { req.oncomplete(null, path); }); return; @@ -304,7 +304,7 @@ ReadFileContext.prototype.close = function(err) { this.err = err; if (this.isUserFd) { - process.nextTick(function() { + process.nextTick(function tick() { req.oncomplete(null); }); return; @@ -554,7 +554,7 @@ fs.read = function(fd, buffer, offset, length, position, callback) { length |= 0; if (length === 0) { - return process.nextTick(function() { + return process.nextTick(function tick() { callback && callback(null, 0, buffer); }); } @@ -1219,7 +1219,7 @@ function writeAll(fd, isUserFd, buffer, offset, length, position, callback) { if (isUserFd) { callback(writeErr); } else { - fs.close(fd, function() { + fs.close(fd, function close() { callback(writeErr); }); } |