Skip to content

Commit 120f890

Browse files
docs(audience): soften Identity.Get comment
"e.g. GDPR deletion" was too specific to one use case. The real contract is "returns-without-creating", which any call site should reason about on its own merits. Reworded to describe the contract, not a caller.
1 parent c7001d8 commit 120f890

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Packages/Audience/Runtime/Core/Identity.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ internal sealed class Identity
1818
private static readonly object _sync = new object();
1919

2020
// Returns the existing anonymous ID, or null if none exists. Never
21-
// creates one — use for call sites that must not implicitly register
22-
// a new ID (e.g. GDPR deletion).
21+
// creates one — for call sites that must not register a new ID as
22+
// a side-effect.
2323
internal static string? Get(string persistentDataPath)
2424
{
2525
if (_cachedId != null) return _cachedId;

0 commit comments

Comments
 (0)