summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRuben Bridgewater <ruben@bridgewater.de>2018-12-28 02:30:40 +0100
committerDaniel Bevenius <daniel.bevenius@gmail.com>2019-01-11 07:32:26 +0100
commit1bee544a20633370d33a592d54ab44f2e6653e69 (patch)
tree7a37d2d0bbe5a35f19da3a26fe8ef004f283b40c /lib
parent1ab659a141a280161fb4192778361fc4f02c7371 (diff)
downloadandroid-node-v8-1bee544a20633370d33a592d54ab44f2e6653e69.tar.gz
android-node-v8-1bee544a20633370d33a592d54ab44f2e6653e69.tar.bz2
android-node-v8-1bee544a20633370d33a592d54ab44f2e6653e69.zip
util: remove outdated comment
This comment is not correct anymore. PR-URL: https://github.com/nodejs/node/pull/25255 Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/internal/util/inspect.js2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/internal/util/inspect.js b/lib/internal/util/inspect.js
index 8516755fa2..e5cde4d335 100644
--- a/lib/internal/util/inspect.js
+++ b/lib/internal/util/inspect.js
@@ -1115,8 +1115,6 @@ function formatPromise(ctx, value, recurseTimes) {
if (state === kPending) {
output = [ctx.stylize('<pending>', 'special')];
} else {
- // Using `formatValue` is correct here without the need to fix the
- // indentation level.
ctx.indentationLvl += 2;
const str = formatValue(ctx, result, recurseTimes);
ctx.indentationLvl -= 2;