Commit ce6908d
fix(audience): init does not mutate caller's AudienceConfig
Init auto-fills PersistentDataPath from DefaultPersistentDataPathProvider.
The old code wrote that back onto the caller's config object — a
surprising side-effect for callers who reuse the config.
Clone via MemberwiseClone before the fill-in. Reference-typed properties
(OnError, HttpHandler) are intentionally shared — cloning delegates
and handlers would break them.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent ac0125a commit ce6908d
2 files changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
43 | 48 | | |
44 | 49 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
53 | 55 | | |
54 | 56 | | |
55 | 57 | | |
| |||
0 commit comments