mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
util: delete unused argument 'depth'
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 <rtrott@gmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Refael Ackermann <refack@gmail.com>
This commit is contained in:
1 parent
1205b1246b
commit
7945debe52
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user