isNotFound returns true if the error is an HTTP 404 response.
(err error)
| 326 | |
| 327 | // isNotFound returns true if the error is an HTTP 404 response. |
| 328 | func isNotFound(err error) bool { |
| 329 | var httpErr api.HTTPError |
| 330 | return errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusNotFound |
| 331 | } |
| 332 | |
| 333 | // noReleasesError signals that the repository has no usable releases, |
| 334 | // which is the only case where ResolveRef should fall back to the |
no outgoing calls
no test coverage detected