Skip to content

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