Permalink
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 <info@bnoordhuis.nl>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Evan Lucas <evanlucas@me.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • 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
View
@@ -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.