-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
replace
os.Is{...}
error checks with errors.Is(err, ...)
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
- Loading branch information
1 parent
292db6d
commit 5b86974
Showing
3 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters