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

chore: add explicit callCounts.set to avoid future inconvenience #49

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joseluisdiaz
Copy link
Member

This has no direct impact on how things work because the cache is returning a reference to the object that is being stored. Modifying that object will cause the object in the cache to go through the modification. This explicit set prevents the reader from thinking that it's missing some how.

@joseluisdiaz joseluisdiaz marked this pull request as ready for review November 2, 2023 20:39
@joseluisdiaz joseluisdiaz requested a review from a team as a code owner November 2, 2023 20:39
Copy link

@LeweyM LeweyM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, this is clearer 👍

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