MCPcopy Index your code
hub / github.com/cli/cli / isNotFound

Function isNotFound

internal/skills/discovery/discovery.go:311–314  ·  view source on GitHub ↗

isNotFound returns true if the error is an HTTP 404 response.

(err error)

Source from the content-addressed store, hash-verified

309
310// isNotFound returns true if the error is an HTTP 404 response.
311func 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

Callers 2

resolveExplicitRefFunction · 0.85
resolveLatestReleaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected