From 60b4ba6934da611bb146761657efad63a0e29125 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' in lib/util.js In lib/util.js, Line 1056, there is a 'depth' argument that is unused for 'process.versions[exports.inspect.custom]', so delete it. --- lib/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/util.js b/lib/util.js index fea6471de6260b..ea6a78334a09ba 100644 --- a/lib/util.js +++ b/lib/util.js @@ -1053,7 +1053,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;