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

Do not get argument again unnecessarily in Arguments.Error() #820

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

TomWright
Copy link
Contributor

We already have access to the argument value so there's no need to retrieve it again for the error message.

@dolmen dolmen added pkg-mock Any issues related to Mock internal/optimization Improve speed or reduce memory usage labels Mar 6, 2024
@dolmen dolmen merged commit 632a260 into stretchr:master Mar 6, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal/optimization Improve speed or reduce memory usage pkg-mock Any issues related to Mock
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants