Skip to content

Commit e526fa0

Browse files
docs(audience-core): drop narrative comments on consent queries
The section header and doc comments restated what the function names already convey. Removed per the project's preference to comment only when the reason is non-obvious. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 769986e commit e526fa0

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

packages/audience/core/src/consent.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,10 @@ export interface ConsentManager {
1111
setLevel(next: ConsentLevel): void;
1212
}
1313

14-
// --- Consent capability queries ---
15-
// Single source of truth for what each consent level permits. Use these
16-
// instead of raw string comparisons so rule changes only touch this file.
17-
18-
/** Can this consent level record events (page views, track calls)? */
1914
export function canTrack(level: ConsentLevel): boolean {
2015
return level !== 'none';
2116
}
2217

23-
/** Can this consent level use identity features (identify, alias, userId, email hash)? */
2418
export function canIdentify(level: ConsentLevel): boolean {
2519
return level === 'full';
2620
}

0 commit comments

Comments
 (0)