v0.0.219 implement error.Is(*) for exerr

This commit is contained in:
2023-07-28 15:42:12 +02:00
parent 190584e0e6
commit 2f1b784dc2
3 changed files with 11 additions and 3 deletions

View File

@@ -24,6 +24,8 @@ func IsFrom(e error, original error) bool {
if e == nil {
return false
}
//goland:noinspection GoDirectComparisonOfErrors
if e == original {
return true
}