From 783cf50a7658ceed185294fc33026d091d4b2936 Mon Sep 17 00:00:00 2001 From: kadoufall Date: Sun, 16 Jul 2017 15:10:50 +0800 Subject: [PATCH] util: delete unused argument 'depth' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In lib/util.js, Line 1056, there is a 'depth' argument that is unused for 'process.versions[exports.inspect.custom]', so delete it. PR-URL: https://github.com/nodejs/node/pull/14267 Reviewed-By: Rich Trott Reviewed-By: Gibson Fahnestock Reviewed-By: Tobias Nießen Reviewed-By: Refael Ackermann --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index 6238ff44bf6e15..99c7e5e9e056c5 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1054,7 +1054,7 @@ exports._exceptionWithHostPort = function(err, // process.versions needs a custom function as some values are lazy-evaluated. process.versions[exports.inspect.custom] = - (depth) => exports.format(JSON.parse(JSON.stringify(process.versions))); + () => exports.format(JSON.parse(JSON.stringify(process.versions))); exports.promisify = internalUtil.promisify;