MCPcopy Create free account
hub / github.com/cli/cli / shouldRetry

Function shouldRetry

pkg/cmd/attestation/api/client.go:279–287  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

277}
278
279func shouldRetry(err error) bool {
280 if httpError, ok := errors.AsType[api.HTTPError](err); ok {
281 if httpError.StatusCode >= 500 && httpError.StatusCode <= 599 {
282 return true
283 }
284 }
285
286 return false
287}
288
289// GetTrustDomain returns the current trust domain. If the default is used
290// the empty string is returned

Callers 2

getAttestationsMethod · 0.70
getTrustDomainMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected