diff --git a/lib/commands/config.js b/lib/commands/config.js index 04815199de64f..1475a461d2492 100644 --- a/lib/commands/config.js +++ b/lib/commands/config.js @@ -77,10 +77,8 @@ const isProtected = (k) => { return false } -// Redacted fields are public unless they contain redacted info -const isRedacted = (v) => redact(v) !== v - -const isPrivate = (k, v) => isProtected(k) || isRedacted(v) +// Private fields are either protected or they can redacted info +const isPrivate = (k, v) => isProtected(k) || redact(v) !== v const displayVar = (k, v) => `${k} = ${isProtected(k, v) ? '(protected)' : JSON.stringify(redact(v))}`