Wish `errors.Is` immediately checked whether err is `nil` and returned `false`. Could have simply solved this issue I think.
if err == nil || target == nil {
return err == target
}
[0]: https://github.com/golang/go/blob/9b43bfbc51c469ec13fca24960... if target == nil {
return err == target
}
[0]: https://github.com/golang/go/blob/go1.22.3/src/errors/wrap.g...https://github.com/golang/go/commit/af43932c20d5b59cdffca454...