diff options
author | Tobias Nießen <tniessen@tnie.de> | 2017-11-18 21:00:03 +0100 |
---|---|---|
committer | Tobias Nießen <tniessen@tnie.de> | 2017-11-21 10:06:51 +0100 |
commit | e515a0eced1d3d9a91d760fd8e538e0e7d3fbd04 (patch) | |
tree | 34ad8d1b4ad1593fc4ead74cc377e3397d547b93 /tools | |
parent | f82f5a4e6ecdbf2bbbbc8de247babd682d4146a3 (diff) | |
download | node-new-e515a0eced1d3d9a91d760fd8e538e0e7d3fbd04.tar.gz |
tools: remove useless function declaration
PR-URL: https://github.com/nodejs/node/pull/17125
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/doc/preprocess.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/tools/doc/preprocess.js b/tools/doc/preprocess.js index 35348d583b..652f12a9f0 100644 --- a/tools/doc/preprocess.js +++ b/tools/doc/preprocess.js @@ -10,11 +10,7 @@ const includeData = {}; function preprocess(inputFile, input, cb) { input = stripComments(input); - processIncludes(inputFile, input, function(err, data) { - if (err) return cb(err); - - cb(null, data); - }); + processIncludes(inputFile, input, cb); } function stripComments(input) { |