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

Function shouldRetry

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

Source from the content-addressed store, hash-verified

266}
267
268func shouldRetry(err error) bool {
269 var httpError api.HTTPError
270 if errors.As(err, &httpError) {
271 if httpError.StatusCode >= 500 && httpError.StatusCode <= 599 {
272 return true
273 }
274 }
275
276 return false
277}
278
279// GetTrustDomain returns the current trust domain. If the default is used
280// the empty string is returned

Callers 2

getAttestationsMethod · 0.70
getTrustDomainMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected