isNotFound returns true if the error is an HTTP 404 response.
(err error)
| 309 | |
| 310 | // isNotFound returns true if the error is an HTTP 404 response. |
| 311 | func isNotFound(err error) bool { |
| 312 | var httpErr api.HTTPError |
| 313 | return errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusNotFound |
| 314 | } |
| 315 | |
| 316 | // noReleasesError signals that the repository has no usable releases, |
| 317 | // which is the only case where ResolveRef should fall back to the |
no outgoing calls
no test coverage detected