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

replace os.Is{...} error checks with errors.Is(err, ...) #83

Merged
merged 1 commit into from
Nov 25, 2020

Conversation

aead
Copy link
Member

@aead aead commented Nov 24, 2020

This commit replaces the error checks using the os.Is{...}
functions - e.g. os.IsExist(err) - with the more generic
errors.Is(err, ...).

In general, the os.Is{...} functions should not be used.
See: golang/go#41122

This commit replaces the error checks using the `os.Is{...}`
functions - e.g. `os.IsExist(err)` - with the more generic
`errors.Is(err, ...)`.

In general, the `os.Is{...}` functions should not be used.
See: golang/go#41122
@harshavardhana harshavardhana merged commit 5b86974 into master Nov 25, 2020
@harshavardhana harshavardhana deleted the os-error branch November 25, 2020 02:25
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