From 25268012b5ce5899c5ee298539a85aea8c85869f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 18 Nov 2017 21:00:03 +0100 Subject: [PATCH] tools: remove useless function declaration Backport-PR-URL: https://github.com/nodejs/node/pull/17788 PR-URL: https://github.com/nodejs/node/pull/17125 Reviewed-By: Colin Ihrig Reviewed-By: Anatoli Papirovski Reviewed-By: Luigi Pinca Reviewed-By: James M Snell --- tools/doc/preprocess.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/doc/preprocess.js b/tools/doc/preprocess.js index 9d56644a67acb5..59ada6c45877a7 100644 --- a/tools/doc/preprocess.js +++ b/tools/doc/preprocess.js @@ -10,11 +10,7 @@ var 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) {