We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 709cbea commit 74e34e5Copy full SHA for 74e34e5
1 file changed
lib/commands/config.js
@@ -77,10 +77,8 @@ const isProtected = (k) => {
77
return false
78
}
79
80
-// Redacted fields are public unless they contain redacted info
81
-const isRedacted = (v) => redact(v) !== v
82
-
83
-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
84
85
const displayVar = (k, v) =>
86
`${k} = ${isProtected(k, v) ? '(protected)' : JSON.stringify(redact(v))}`
0 commit comments