Skip to content

Commit f7b5d54

Browse files
committed
fix xerrors.Is check
1 parent a6723ed commit f7b5d54

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

internal/xerrors/xerrors.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,6 @@ func As(err error, targets ...interface{}) bool {
7979
// Is is a improved proxy to errors.Is
8080
// This need to single import errors
8181
func Is(err error, targets ...error) bool {
82-
if err == nil {
83-
panic("nil err")
84-
}
8582
if len(targets) == 0 {
8683
panic("empty targets")
8784
}

0 commit comments

Comments
 (0)