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

Revert "Add support for errors.Is()" #532

Merged
merged 1 commit into from
Sep 9, 2021
Merged

Conversation

laniehei
Copy link
Member

@laniehei laniehei commented Sep 9, 2021

Reverts #523
References issue #403

Reverting due to reasoning brought up by @alexshtin: the current Is() implementation is not sufficient to compare error types without a deep equality. The current implementation simply checks whether the types are the same, not whether the underlying error is the same. The error occurs on line 46 of the errors source code.

@laniehei laniehei merged commit f61b2a7 into master Sep 9, 2021
@laniehei laniehei deleted the revert-523-errors-is branch September 9, 2021 20:22
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.

3 participants