From 3e144496d3ebe992a0f045f169a23980dd4b5396 Mon Sep 17 00:00:00 2001 From: Bryan English Date: Tue, 17 Oct 2017 23:27:08 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/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 --- lib/fs.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/fs.js b/lib/fs.js index 4d70555bcce..847de4dbb87 100644 --- a/lib/fs.js +++ b/lib/fs.js @@ -621,10 +621,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);