We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6723ed commit f7b5d54Copy full SHA for f7b5d54
internal/xerrors/xerrors.go
@@ -79,9 +79,6 @@ func As(err error, targets ...interface{}) bool {
79
// Is is a improved proxy to errors.Is
80
// This need to single import errors
81
func Is(err error, targets ...error) bool {
82
- if err == nil {
83
- panic("nil err")
84
- }
85
if len(targets) == 0 {
86
panic("empty targets")
87
}
0 commit comments