MCPcopy Create free account
hub / github.com/compozy/agh / closeResponseBody

Function closeResponseBody

internal/registry/github/client.go:904–912  ·  view source on GitHub ↗
(body io.Closer, context string)

Source from the content-addressed store, hash-verified

902}
903
904func closeResponseBody(body io.Closer, context string) error {
905 if body == nil {
906 return nil
907 }
908 if err := body.Close(); err != nil {
909 return fmt.Errorf("github: close %s: %w", context, err)
910 }
911 return nil
912}
913
914func joinErrors(errs ...error) error {
915 filtered := make([]error, 0, len(errs))

Callers 7

fetchLatestReleaseMethod · 0.85
fetchRequestedReleaseMethod · 0.85
fetchReleasePageMethod · 0.85
finalizeDownloadResponseFunction · 0.85
prepareRetryResponseMethod · 0.85
checkRateLimitMethod · 0.85

Calls 1

CloseMethod · 0.65

Tested by 1