Browse files

fs: remove no-longer-relevant comment

The comment suggests that the subsequent code could by DRYed up, due to
simply passing arguments along. However, in the commits since then, this
no longer appears to apply, and so the comment is now confusing with
respect to the current code.

PR-URL: #16285
Reviewed-By: Ben Noordhuis <>
Reviewed-By: Luigi Pinca <>
Reviewed-By: Refael Ackermann <>
Reviewed-By: Colin Ihrig <>
Reviewed-By: Evan Lucas <>
Reviewed-By: James M Snell <>
  • Loading branch information...
bengl authored and targos committed Oct 18, 2017
1 parent a601596 commit f501062363c885660e693e0adc6b781a94eedea0
Showing with 0 additions and 4 deletions.
  1. +0 −4 lib/fs.js
@@ -605,10 +605,6 @@ fs.readFileSync = function(path, options) {
return buffer;
// Yes, the follow could be easily DRYed up but I provide the explicit
// list to make the arguments clear.
fs.close = function(fd, callback) {
var req = new FSReqWrap();
req.oncomplete = makeCallback(callback);

0 comments on commit f501062

Please sign in to comment.