Skip to content

Commit

Permalink
fix is err
Browse files Browse the repository at this point in the history
  • Loading branch information
olisakov committed Jan 2, 2023
1 parent 981d4ac commit daed1d5
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -396,9 +396,3 @@ func As(err error, target interface{}) bool {
func Is(err error, target error) bool {
return goerrors.Is(err, target)
}

// Is finds the first error in err's chain that matches target,
// and if so, sets target to that error value and returns true. Otherwise, it returns false.
func Is(err error, target interface{}) bool {
return errors.Is(err, target)
}

0 comments on commit daed1d5

Please sign in to comment.