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

Function shouldRetry

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

Source from the content-addressed store, hash-verified

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

Callers 2

getAttestationsMethod · 0.70
getTrustDomainMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected