Skip to content

Commit 3011d66

Browse files
committed
style: Shorten the redaction comment to one line
1 parent 3f27cb7 commit 3011d66

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/events/EventContextFormatter.java‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,7 @@ private List<String> writeOrRedactAttribute(
104104
boolean redactAnonymous
105105
) throws IOException {
106106
if (allAttributesPrivate || (redactAnonymous && c.isAnonymous())) {
107-
// The name must be reported as an escaped attribute reference. Otherwise a name that
108-
// starts with a slash reads as a path to a nested property, and the consumer does not
109-
// see which attribute was redacted.
107+
// An escaped reference keeps a leading slash from reading as a path.
110108
return addOrCreate(redacted, AttributeRef.fromLiteral(attrName).toString());
111109
}
112110
return writeRedactedValue(w, c, 0, attrName, value, null, redacted);

0 commit comments

Comments
 (0)