Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mutate: Create a defensive annotations copy #2030

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

jonjohnsonjr
Copy link
Collaborator

Since this is computed lazily, the caller can modify the map, which would break the ~immutable nature of this API, so we create a defensive copy.

Since this is computed lazily, the caller can modify the map, which
would break the ~immutable nature of this API, so we create a defensive
copy.

Signed-off-by: Jon Johnson <[email protected]>
@jonjohnsonjr jonjohnsonjr enabled auto-merge (squash) October 29, 2024 23:06
@jonjohnsonjr jonjohnsonjr merged commit 06dcd85 into google:main Oct 30, 2024
16 checks passed
@jonjohnsonjr jonjohnsonjr deleted the mutate-annotations-thing branch October 30, 2024 01:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants