MCPcopy Create free account
hub / github.com/bluekeyes/patch2pr / isCode

Function isCode

cmd/patch2pr/main.go:486–489  ·  view source on GitHub ↗
(err error, code int)

Source from the content-addressed store, hash-verified

484}
485
486func isCode(err error, code int) bool {
487 var rerr *github.ErrorResponse
488 return errors.As(err, &rerr) && rerr.Response.StatusCode == code
489}
490
491func closeQuitely(c io.Closer) {
492 _ = c.Close()

Callers 3

dieFunction · 0.85
prepareSourceRepoFunction · 0.85
createForkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected