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>
This commit is contained in:
parent
1ab659a141
commit
1bee544a20
@ -1115,8 +1115,6 @@ function formatPromise(ctx, value, recurseTimes) {
|
|||||||
if (state === kPending) {
|
if (state === kPending) {
|
||||||
output = [ctx.stylize('<pending>', 'special')];
|
output = [ctx.stylize('<pending>', 'special')];
|
||||||
} else {
|
} else {
|
||||||
// Using `formatValue` is correct here without the need to fix the
|
|
||||||
// indentation level.
|
|
||||||
ctx.indentationLvl += 2;
|
ctx.indentationLvl += 2;
|
||||||
const str = formatValue(ctx, result, recurseTimes);
|
const str = formatValue(ctx, result, recurseTimes);
|
||||||
ctx.indentationLvl -= 2;
|
ctx.indentationLvl -= 2;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user