Skip to content

Commit

Permalink
util: delete unused argument 'depth'
Browse files Browse the repository at this point in the history
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: #14267
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Gibson Fahnestock <[email protected]>
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Refael Ackermann <[email protected]>
  • Loading branch information
kadoufall authored and Fishrock123 committed Jul 19, 2017
1 parent 1205b12 commit 7945deb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7945deb

Please sign in to comment.