Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

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

Open
joseluisdiaz wants to merge 1 commit into
masterfrom
add-an-explicit-set
Open

chore: add explicit callCounts.set to avoid future inconvenience#49
joseluisdiaz wants to merge 1 commit into
masterfrom
add-an-explicit-set

Conversation

@joseluisdiaz

Copy link
Copy Markdown
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

@LeweyM LeweyM left a comment

Copy link
Copy Markdown

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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants