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

Function shouldRetry

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

Source from the content-addressed store, hash-verified

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

Callers 2

getAttestationsMethod · 0.70
getTrustDomainMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected