From e515a0eced1d3d9a91d760fd8e538e0e7d3fbd04 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 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 35348d583b0f0a..652f12a9f05472 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) {