-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use errors.Is when checking Redis client errors (#23)
When using `==`, this comparison will fail if the error is wrapped (for example, to add some common prefix string to the error message.) The solution is to use `errors.Is`, which will check down the chain.
- Loading branch information
1 parent
fc72569
commit 527d19f
Showing
1 changed file
with
4 additions
and
3 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