Skip to content

Commit 783cf50

Browse files
kadoufalladdaleax
authored andcommitted
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: #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]>
1 parent 76a4671 commit 783cf50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ exports._exceptionWithHostPort = function(err,
10541054

10551055
// process.versions needs a custom function as some values are lazy-evaluated.
10561056
process.versions[exports.inspect.custom] =
1057-
(depth) => exports.format(JSON.parse(JSON.stringify(process.versions)));
1057+
() => exports.format(JSON.parse(JSON.stringify(process.versions)));
10581058

10591059
exports.promisify = internalUtil.promisify;
10601060

0 commit comments

Comments
 (0)