| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1b9c40c commit b6de6a7
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -245,7 +245,7 @@ fs.readFile = function(path, options, callback) { | |||
| 245 | 245 | req.oncomplete = readFileAfterOpen; | |
| 246 | 246 | ||
| 247 | 247 | if (context.isUserFd) { | |
| 248 | - process.nextTick(function() { | ||
| 248 | + process.nextTick(function tick() { | ||
| 249 | 249 | req.oncomplete(null, path); | |
| 250 | 250 | }); | |
| 251 | 251 | return; | |
@@ -302,7 +302,7 @@ ReadFileContext.prototype.close = function(err) { | |||
| 302 | 302 | this.err = err; | |
| 303 | 303 | ||
| 304 | 304 | if (this.isUserFd) { | |
| 305 | - process.nextTick(function() { | ||
| 305 | + process.nextTick(function tick() { | ||
| 306 | 306 | req.oncomplete(null); | |
| 307 | 307 | }); | |
| 308 | 308 | return; | |
@@ -552,7 +552,7 @@ fs.read = function(fd, buffer, offset, length, position, callback) { | |||
| 552 | 552 | length |= 0; | |
| 553 | 553 | ||
| 554 | 554 | if (length === 0) { | |
| 555 | - return process.nextTick(function() { | ||
| 555 | + return process.nextTick(function tick() { | ||
| 556 | 556 | callback && callback(null, 0, buffer); | |
| 557 | 557 | }); | |
| 558 | 558 | } | |
@@ -1217,7 +1217,7 @@ function writeAll(fd, isUserFd, buffer, offset, length, position, callback) { | |||
| 1217 | 1217 | if (isUserFd) { | |
| 1218 | 1218 | callback(writeErr); | |
| 1219 | 1219 | } else { | |
| 1220 | - fs.close(fd, function() { | ||
| 1220 | + fs.close(fd, function close() { | ||
| 1221 | 1221 | callback(writeErr); | |
| 1222 | 1222 | }); | |
| 1223 | 1223 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments