Skip to content

Commit d4402e7

Browse files
kadoufallTrott
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 <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>
1 parent 242e7a8 commit d4402e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ exports._exceptionWithHostPort = function(err,
10531053

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

10581058
exports.promisify = internalUtil.promisify;
10591059

0 commit comments

Comments
 (0)