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

Fix duplicate error equality check #314

Merged
merged 1 commit into from
Dec 10, 2020
Merged

Fix duplicate error equality check #314

merged 1 commit into from
Dec 10, 2020

Conversation

haugenj
Copy link
Contributor

@haugenj haugenj commented Dec 10, 2020

Issue #, if available:
no issue

Description of changes:
We're comparing the error objects instead of their contained errors. err is new on each loop so it'll never be equal to previousErr

Proof is in the playground: https://play.golang.org/p/o5ezN5xvaSy

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link
Contributor

@brycahta brycahta left a comment

Choose a reason for hiding this comment

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

Nice catch 👍

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