This commit is contained in:
Ian Gulliver
2023-04-28 07:08:17 -07:00
parent bbc8de765b
commit 2ae31b2554

View File

@@ -159,6 +159,7 @@ type multiUnwrap interface {
}
func GetHTTPError(err error) *HTTPError {
// TODO: Rewrite using errors.As
if hErr, has := err.(*HTTPError); has { //nolint:errorlint
return hErr
}