Skip to content

Commit 7ea6f9b

Browse files
authored
Merge pull request #652 from ydb-platform/fix-xerrors-is
Fix xerrors is
2 parents a6723ed + ad242ff commit 7ea6f9b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Fixed checking `nil` error with `internal/xerrors.Is`
2+
13
## v3.42.14
24
* Supported `scheme.EntryTopic` path child entry in `sugar.RemoveRecursive`
35

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)